IF PAGE.RUNMODAL(PAGE::Companies,Company) = ACTION::LookupOK THEN BEGIN
YourCompany := Company.Name;
YourRec.CHANGECOMPANY(YourCompany);
IF PAGE.RUNMODAL(0,YourRec) = ACTION::LookupOK THEN;
END;
IF PAGE.RUNMODAL(PAGE::Companies,Company) = ACTION::LookupOK THEN BEGIN
-- opens companies page, if user selected a company then..
YourCompany := Company.Name;
-- gets company selected
YourRec.CHANGECOMPANY(YourCompany);
-- changes company for record
Answers
YourRec.CHANGECOMPANY('YourComapny');
IF PAGE.RUNMODAL(0,YourRec) = ACTION::LookupOK THEN
how can you change 'Your company' to the company name that you select on the page
YourCompany := Company.Name;
YourRec.CHANGECOMPANY(YourCompany);
IF PAGE.RUNMODAL(0,YourRec) = ACTION::LookupOK THEN;
END;
JPage.LOOKUPMODE(TRUE);
IF NOT (JPage.RUNMODAL = ACTION::LookupOK) THEN
EXIT(FALSE);
its going to the right page but the company is not changing.
I would like it to go to the company that I select from the page
I hope this makes sense
-- opens companies page, if user selected a company then..
YourCompany := Company.Name;
-- gets company selected
YourRec.CHANGECOMPANY(YourCompany);
-- changes company for record
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!