I have 2 pages. Pages name are A and B
i have a button for calculating.
i want to go second page (B) if i click to button.
is it possible?
Thanks
Make a PHP button.
It will appear in your Toolbar.
You can put your Calculation code on that button and at the end have it sc_redir(page2);
I added this code but page gives an error
Not Found
The requested URL /scriptcase/app/project/pag2/ was not found on this server.
Your error says you typed it in like this:
sc_redir(pag2);
when it should be this:
sc_redir(page2);
Not Found
The requested URL /scriptcase/app/project/page2/ was not found on this server.
you cannot use sc_redir () in this case.
Macro redirects you to the selected application.
This macro its used to redirect the processing to other application or URL.
If the redir uses parameters, these must be passed in the following format:
1) After the name of the application, use the comma delimiter (,) then
2) = (equal sign) .
3) More than one parameter, must be separated by semicolon (
4) The target determine which application is opened (default=_self): _self, _parent, _blank or modal.
5) Optional parameter to set error messages redirection in the application: “F” redirects if there is error in the application (default value) and “E” does not redirect.
Try using sc_set_focus () and set the name of the first field on your page 2.
This macro its used to set the focus to a form field.
Ex. 1:
sc_set_focus(‘name’);
Macro Scope
calendar application | Form application | Control Form |
---|---|---|
OnClick |
onLoad
onRefresh
onValidateSuccess|OnClick
onLoad
onRefresh
onValidateSuccess|onApplicationInit
onScriptInit
onLoadAll
onRefresh|
i did try everthing but not working.
only i want if i click to button pag2 pages should be open.
or if i click to save button pag2 page should be open
OK, now I’m confused.
What are you talking about when you write 2 pages?
One 2-page form?
Two different applications (form)?
Can you post any screen shoot?
i have 2 pages. pag1 and pag2
i want to go pag2 if i click save button or any button which i did create.
Event:
onValidateSuccess
sc_set_focus(‘name’);
not working.
Did you try before
It works flawlessly for me.
What is the name of your first field on page 2?
You have to use that name.
sc_set_focus(‘xxxx_name_of_your_field_on_page_2’);
Form is in edit mode or insert mode?
i found
sc_set_focus(‘status’);
status is field name in second page
thank you very much