Focal Point
[RE-OPENED] 'Save Selection' button - has anyone made this work?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9467065326

August 27, 2012, 11:21 AM
Francis Mariani
[RE-OPENED] 'Save Selection' button - has anyone made this work?
When creating an HTML Composer designed form in MRE, you can add a Save Selection button. That adds a call to a JavaScript function called SaveSelectedParameters and the parameters are saved to the My Reports area of MRE.

Has anyone made this work? As someone just pointed out, the button appears in HTML Composer, but does not display when launching the form.

Thanks,

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 27, 2012, 03:53 PM
Doug
I think Don did...
August 27, 2012, 04:01 PM
Don Garland
Yes, it's working in 7.6.11. Seems like the user has to have 'My Reports' enabled in MRE though. Do you see the elements in text?

i.e.

 // **************************************************************************************************************************************************************************
//Begin function saveButton_onclick
function saveButton_onclick(ctrl) {
// TODO: Add your event handler code here
SaveSelectedParameters()
}
//End function saveButton_onclick
 

This message has been edited. Last edited by: Don Garland,


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
August 27, 2012, 04:39 PM
Francis Mariani
Don,

Thanks for the info. I found a temporary solution to the missing Save Selections button - I created a simple button that executes the same JS as the Save Selections button.

I just wonder why the Save Selections button does not display.

Regards,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 28, 2012, 07:22 AM
David Glick
Hi Gang,

That is not how you do this. Save Sekection is only in Managed Reportng, so the page must be in MR in order to add it to the page. The next requirement is that the user at runtime must be allowed to save parameterized reports. That is an MR permission for the user. If the user does not see the button at runtime, it means they do not have the privilege to save parameterized reports.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
August 28, 2012, 09:02 AM
Don Garland
quote:
Managed


Yep, I thought of that last night. You apply it in DevStudio but it only works when you run the report from MR.


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
August 28, 2012, 09:28 AM
Francis Mariani
"That is not how you do this". This is how I am doing it. This IS all in MRE. For some reason, which I hope you can explain, the Save Selection button does not appear on the MRE contained, HTML Composer composed page. What is going on? At first I thought the problem was I was running the screen from Dev Studio - you know, for testing purposes - which Dev Studio allows you to do. Then I ran it from the MRE Domain Builder and I have the same result - no Save Selections button.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 28, 2012, 09:39 AM
Francis Mariani
Oh, and by the way, I think DevStudio is smart enough to determine if the html page is in MRE or not - if it is not in MRE, the Save Selections icon in the Components toolbar is disabled.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 28, 2012, 10:53 AM
Doug
Francis,
quote:
I think DevStudio is smart enough to determine if the html page is in MRE or not
Check out the [CLOSED / SHARING] Composer / JavaScript question post
August 29, 2012, 07:24 AM
David Glick
Francis,

I don't understand what you are trying to get at. The product writes specific MR attributes to a page created in MR. So of course it knows the page is an MR page.

If you have created the page using the GUI in MR, and have the Save Selection button on it, and you run the page with a user that has the save parameterized report permission, the button will display and work.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
August 30, 2012, 09:17 AM
J
I have the same problem as Francis. It appears I have to have two save selections for one to appear at run time.


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
August 30, 2012, 10:11 AM
Francis Mariani
David describes how it's supposed to work. I have described how it actually does not work, unless you intervene.

"I don't understand what you are trying to get at. The product writes specific MR attributes to a page created in MR. So of course it knows the page is an MR page." - I wouldn't bring this up if I didn't create the form in HTML Composer and if I didn't abide by all the rules, so, something is wrong. This is one of two FocalPoint threads that mentions the Save Selection button does not display when running the page. In fact, it appears for .25 seconds before disappearing.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 30, 2012, 06:18 PM
j.gross
Francis --

But has the MR user-ID you use to test the report been granted the "save parameterized report permission"? You sort of implied that, but didn't say so explicitly.
August 31, 2012, 07:15 AM
David Glick
Thanks Jack. I said that too. The MR user needs the permission in order to see it.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
August 31, 2012, 09:35 AM
Francis Mariani
I do not know if the user has been granted the "save parameterized report permission". I didn't know one needed to.

Thank you for pointing this out. We use Active Directory and the MRE Administration page does not contain our User ID's.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 07, 2013, 11:53 AM
Francis Mariani
I really wish that D.G. wouldn't get so prickly. We developers live in the real world with hundreds of programs of many variations, not in some protected universe where four or five example programs work really well.

I have found this Save Parameter functionality does not work when the MRE program is a fex that has an -HTMLFORM app/page_name.htm in it. Is this documented?

I have a simple HTML pageusing the CAR file in a Tree Control and I did make the Save Parameters work.

I have a slightly more complex HTML page - completely created by HTML Composer GUI, with additional JavaScript, which, I believe, is supported. I get a JavaScript error on line 9430 in file ibirls3.js. Now, how do I debug this and why is it happening on a page that was completely built in HTML Composer GUI (with no launch fex)?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 08, 2013, 07:22 AM
David Glick
Francis,

It is documented that -HTMLFORM and HTML Composer should not be used together. It was also a topic in my "Best Practices" presentation I did for the FocalPoint audience a few weeks ago. Save Selection creates an HTML page with the saved values and calls back to the original HTML page. -HTMLFORM needs to be in a FEX. So they cannot work together.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
March 08, 2013, 05:27 PM
Francis Mariani
Fine, but you didn't answer my second question: "how do I debug this and why is it happening on a page that was completely built in HTML Composer GUI (with no launch fex)?".


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
March 11, 2013, 07:20 AM
David Glick
If you are not using -HTMLFORM, I have no idea and suggest you open a case with Support Services.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
July 12, 2013, 04:37 PM
J
Francis, I don't know if this is still an issue for you, but check out my workaround here


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs