Hi
I may be down this the wrong way, but I have two BO (WorkFull, WorkAbv) in a BOG (Works)
I have a query showing the Name field that is common to both BOs
WorkFull is a parent record of WorkAbv and WorkAbv shows alternative names for WorkFull.
I am trying to use the results of the Query that I have to show the parent record regardless of whether it is the WorkFull or WorkAbv that is selected.
I tried an IF statement using TYPE, and while it is showing me the correct name it ceases to evaluate the rest of the IF and never records the ID
The statement I was using is:
If TYPE (Works)=WorkFull Then
LoggedInRegularUser.SEL_WorkID=WorkFull.ID Else
LoggedInRegularUser.SEL_WorkID= WorkAbv.ob_WorkFull.ID
I put a few DISPLAY MESSAGEs in to debug and it seems that If evaluated but then nothing else does.
Is there a better way to find the name of the BO?
[SOLVED] TYPE Function
-
- Posts: 1462
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
[SOLVED] TYPE Function
Last edited by PointsWell on Thu Feb 16, 2017 5:46 am, edited 1 time in total.
Re: TYPE Function
add an attribute that have the BO name as default value.
-
- Posts: 1462
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: TYPE Function
That is a very pragmatic solution. Will do that.mrbdrm wrote:add an attribute that have the BO name as default value.
-
- Posts: 1462
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: [SOLVED] TYPE Function
The problem was caused by fat fingers and code blindness.
The solution bigger screen text and smaller fingers.
The solution bigger screen text and smaller fingers.
Re: [SOLVED] TYPE Function
Might be easier to make the fingers smaller...PointsWell wrote: The solution bigger screen text and smaller fingers.