browseForFile seems to not work.

When I save a report for a local CSV; within the datasource it has the option browseForFile = true.
Then, when attempting to load the report back – nothing happens; it’s like it attempts to do something but nothing actually happens.
I would assume it would prompt for the data, as browseForFile is set to true – but it does not.

5 answers

Public
Dmytro Zvazhii Flexmonster February 19, 2018

Hello Psyala,
Thank you for writing. The browseForFile: true property should allow opening file browser so you can choose the file from your local environment. However, due to the browser restriction, we are not allowed to open such window without user interaction. Nevertheless could you please provide us with more details about your use case? Thus, we will be able to provide a suitable solution for you.
Waiting for the update from you.
Regards,
Dmytro

Public
Psyala February 20, 2018

Hi Dmytro,
If the user is to upload their own data set via JSON to the Flexmonster component and then save a report, a JSON file report will be created with:

"dataSource": { "browseForFile": true; }

If the user was to then revisit the page at a later date, regardless of if they were to load their data set again or not – when loading their report with the above code in – nothing happens. As in, the page stays blank, or if a data set was present it will then go blank.

The expected behaviour from me would be that when loading the report, the user would be then prompt to browse for a datafile to use the report for.

Thanks for the initial response, hope this describes my issue better.

Regards.

Public
Dmytro Zvazhii Flexmonster February 20, 2018

Hello Psyala,
Thank you for the clarification. We are going to add the additional pop up which would request user permission to open the file browser. Such approach allows overcoming browser’s restriction and achieving the desired behavior. The necessary changes will be added to the version 2.416 ETA Mar 12.
Please let us know if it works for you.
Regards,
Dmytro.

Public
Psyala February 20, 2018

Hi Dmytro,
Thanks for the response. I think that’s a perfect fit solution for the problem at hand; I look forward to testing it in the future. Thus, I’ll close the support ticket for now.
Regards.

Public
Dmytro Zvazhii Flexmonster March 12, 2018

Hello Psyala,
We are glad to inform you that the 2.416 version is already available on our website. You are welcome to try the new browseToFile extended functionality.
Waiting for your feedback.
Regards,
Dmytro

Please login or Register to Submit Answer