I am wanting to add a button to a form...When clicked, then a pdf report is created.
PHP Code=de_contact_php
Report Code= de_contact_rpt
When I go to the Form Properties --> Extra Action Buttons
Title = Contact Report
Display Condition= SELECT '1'
Javascript to Run=nuRunPDF('de_contact_rpt');
When I click "Save" button, then the "Title", "Display", and "Javascript to Run" values disappears and no button is created on my form.
so basically what I'm asking is... What is the preferred way for a user (not globeadmin) to generate a report? I can create the report by logging in as globeadmin and going to "Run Report" ...but a user doesn't have a "Run Report" button or is there an option somewhere to show "Run Report"
I have watched the nuBuilder videos, but it doesn't show how to run report from Extra Action Button.
Documentation reads:
Reports created in this section can be used by running a Javascript function called nuRunPDF() and passing the Code of this Report record as a parameter eg nuRunPDF('001');
I must be confused on where to call nuRunPDF() JavaScript function.
Thanks!
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
How can a user run a report?
-
- Posts: 503
- Joined: Thu May 24, 2012 2:08 am
- Location: Milan, Italy
- Contact:
Re: How can a user run a report?
rnott,
Here a video tutorial.
- have you checked the "Delete" checkbox?
- The condition SELECT '1' can be omitted.
- in Javascript to Run don't use double quote.
Have you add you report in Setup > Access Level > [user level] > Report?rnott wrote: ...but a user doesn't have a "Run Report" button or is there an option somewhere to show "Run Report"
Here a video tutorial.
-
- Posts: 31
- Joined: Fri Mar 14, 2014 6:14 pm
Re: How can a user run a report?
I'm currently logged in as globeadmin & when I go to form properties --> Extra Action Buttons
Title=Test
Display Condition=
Javascript to Run= alert('Test');
Delete check box is unchecked
When I click Save button, the Title, & Javascript values disappears . & no button is created on the form
Title=Test
Display Condition=
Javascript to Run= alert('Test');
Delete check box is unchecked
When I click Save button, the Title, & Javascript values disappears . & no button is created on the form
-
- Posts: 503
- Joined: Thu May 24, 2012 2:08 am
- Location: Milan, Italy
- Contact:
Re: How can a user run a report?
Have you the last build?
Are you using IE? If so, try with Firefox or Chrome.
Are you using IE? If so, try with Firefox or Chrome.
-
- Posts: 31
- Joined: Fri Mar 14, 2014 6:14 pm
Re: How can a user run a report?
I just cloned the nuBuilder github repository-->modified config.php-->and ran nuinstall.php
but still not creating Extra Action Button on my form...
I created a new form and I was able to create the Extra Action Button--> and when I clicked it I got the alert message
I have 90 objects on the form that will not create the Extra Action Button. The Order value is set to 10 on most of them & others have duplicate values...this may be the problem...I will Reorder the objects and see if it will fix.
Thanks
but still not creating Extra Action Button on my form...
I created a new form and I was able to create the Extra Action Button--> and when I clicked it I got the alert message
I have 90 objects on the form that will not create the Extra Action Button. The Order value is set to 10 on most of them & others have duplicate values...this may be the problem...I will Reorder the objects and see if it will fix.
Thanks
-
- Posts: 31
- Joined: Fri Mar 14, 2014 6:14 pm
Re: How can a user run a report?
I have Reordered the objects, but still cannot create Extra Action Button
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: How can a user run a report?
rnott,
Can you create a Button Object which is different to an Extra Action Button
Steven
Can you create a Button Object which is different to an Extra Action Button
Steven
-
- Posts: 31
- Joined: Fri Mar 14, 2014 6:14 pm
-
- Site Admin
- Posts: 2781
- Joined: Mon Jun 15, 2009 2:23 am
- nuBuilder Version: 4.5
- Been thanked: 1 time
Re: How can a user run a report?
rnott,
You said
Have a look at the zzzsys_form_action table and see what is getting saved in sfa_zzzsys_form_id.
Steven
You said
I don't understand, can you create a Extra Action Button only on a new Form?but still not creating Extra Action Button on my form...
I created a new form and I was able to create the Extra Action Button--> and when I clicked it I got the alert message
Have a look at the zzzsys_form_action table and see what is getting saved in sfa_zzzsys_form_id.
Steven
-
- Posts: 31
- Joined: Fri Mar 14, 2014 6:14 pm