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?