Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EIP, lookup and Relation tree

Status
Not open for further replies.

mikechy

Programmer
Nov 11, 2008
11
US
How to use EIP Lookup to call and select value from Relation tree? Reltree doesn't have Select button template. Is it true?
I use Clarion-6.
 
Hi!

I assume you are calling the RelTree procedure after setting GlobalRequest = SelectRecord. If so, you could create a new button called ?Select and a LocalVariable as SelectCalled BYTE(0). You need to execute the following code ::

"?Select Accepted embed" ::

SelectCalled = True ; POST(EVENT:Accepted, ?Change)

"Before calling Update Procedure on Edit" embeds on Primary/Secondary files ::

IF SelectCalled
GlobalRequest = RequestCompleted
POST(EVENT:CloseWindow)
END

Regards
 
Shankar,

Thanks for the help.
My first question was not correct - it worked for me, but I didn't uncheck MDI option and for this reason could not see reltree window.
On second question - so, there is no Select button template in Reltree template, therefore it should be inserted into the code manually. Thanks again.

Regards,
Mike
 
Shankar,
I had no time earlier, so I've returned to my question only now.
I felt, that I saw such solution, but couldn't remember where. The solution is very simple - I should use MultiReltree template instead of the Relation Tree: the first one has 'Select a Record from Tree' extension.

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top