Any 1 hv idea...how to write code to jump to form.
Example.. If let say my if statement is TRUE then i want it to jump to the form id 5600.
IF a-b = c then
<jump to form id 5600> (wat is the code?)
let say i write FORM.RUN(5600) and this statement jump to the form id 5600 and i want it to go activate one of the button to fire this trigger <control25>-OnPush> how to make it?
Better use FORM.RUNMODAL(FORM::"Your Form");
RUNMODAL is in case you want that the user first closes the new form before turning to the old form. RUN can be used if you don't want that the user first closes the new form.
NEVER use the numbers of the objects, but always use them in the form:
FORM::"The Form"
REPORT::"The Report"
...
It is a lot easier to find where the form has been used in the code in case you are searching for it.
Now if you also want to run some code behind some button:
-Create a function in your form and put all the code in it. In the button call that function.
-In your calling form (or other object), create a global variable on the form.
frmTheForm as Form "The Form"
Use it like this:
CLEAR(frmTheForm);
frmTheForm.TheFunction(); // this launches the function
frmTheForm.RUNMODAL;
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
FORM.RUNMODAL(FORM::"Your Form");
RUNMODAL is in case you want that the user first closes the new form before turning to the old form. RUN can be used if you don't want that the user first closes the new form.
NEVER use the numbers of the objects, but always use them in the form:
FORM::"The Form"
REPORT::"The Report"
...
It is a lot easier to find where the form has been used in the code in case you are searching for it.
Now if you also want to run some code behind some button:
-Create a function in your form and put all the code in it. In the button call that function.
-In your calling form (or other object), create a global variable on the form. Use it like this:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!