[SOLVED] TYPE Function

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
PointsWell
Posts: 1462
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

[SOLVED] TYPE Function

Post by PointsWell »

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?
Last edited by PointsWell on Thu Feb 16, 2017 5:46 am, edited 1 time in total.
mrbdrm
Posts: 349
Joined: Tue Oct 16, 2012 11:44 am

Re: TYPE Function

Post by mrbdrm »

add an attribute that have the BO name as default value.
PointsWell
Posts: 1462
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: TYPE Function

Post by PointsWell »

mrbdrm wrote:add an attribute that have the BO name as default value.
That is a very pragmatic solution. Will do that.
PointsWell
Posts: 1462
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: [SOLVED] TYPE Function

Post by PointsWell »

The problem was caused by fat fingers and code blindness.

The solution bigger screen text and smaller fingers.

:?
BenHayat
Posts: 2749
Joined: Thu Dec 23, 2010 5:48 am
Location: Fla, USA
Contact:

Re: [SOLVED] TYPE Function

Post by BenHayat »

PointsWell wrote: The solution bigger screen text and smaller fingers. :?
Might be easier to make the fingers smaller... :mrgreen:
Post Reply