Need a special offer?Find out if your project fits.
+

How to remove the missing level

Re-Open
Fabrizio asked on August 31, 2022

When I have all level exploded and with a api-call I reload data whitout for example last level of data that last level, on flexmonster, remain opened whit (blank) label.
Is it possible, when the plugin didn't found the level, remove this?

Attachments:
screen-154840653.png

Nadia Khodakivska created this ticket from #47727

9 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster August 31, 2022

Hello, Fabrizio,

Thank you for contacting us.

If we understood correctly, you want an empty cell instead of a "(blank)" label when updating data. In such case, you should download the localization, replace the "blankMember" with " " and set the new localization to Flexmonster in the Global Object:

global: {
    localization: "path-to-the-new-localization"
}

Please let us know if it works for you. Feel free to contact us if other questions arise.

Kind regards,
Nadia

Public
Fabrizio September 6, 2022

Hi Nadia,
in my configuration the report is defined as
 

global: {
        localization: "loc/it.json"
    },

    report: {
        localization: {
            "grid": {
              "blankMember": " ",
            }
        },

 
when I change my input-select parameter I update data with the funcion
 

pivot.updateData({
        filename: ____MYURL_____
    });
 

How can I reset the report configuration after the update as beginning

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster September 7, 2022

Hello,

Thank you for contacting us.

Kindly note that the updateData API call updates data for the report without cleaning the report. It means that the defined localization in the report ("blankMember": "") should stay the same. Please check the following JSFiddle for reference: https://jsfiddle.net/flexmonster/nk0xac68/ 
You are welcome to edit the example above to show us the issue you are facing.

Looking forward to hearing from you.

Kind regards,
Nadia

Public
Fabrizio September 8, 2022

Hi Nadia,
I flag and de-flag the button so, if I insert  the command
 
, {
partial: true
}
 
I think that is correct only when I remove the last level of data. 
 
I think I have to refresh the report->localization ->grid completely every time but i don't know how.
Thanks

Attachments:
Cattura.PNG

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster September 9, 2022

Hello, Fabrizio,

Thank you for your response.

Just to make sure we understood you correctly, could you please confirm if you want to display the "blankMember" value as an empty string instead of "(vouto)" from your screenshot? And does the localization defined in the report("blankMember": "") disappear when you use the updateData API call? It would greatly help us.

Looking forward to hearing from you.

Kind regards,
Nadia

Public
Fabrizio September 12, 2022

If you can watch this video

When the updateData command get out the last level of my hierarchy I would like to come back as the first part of the video, whitout the "(vuoto)" level
waiting for you response
King regards
Daniele
 

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster September 13, 2022

Hi, Daniele,

Thank you for providing us with the video.

We would like to ask you to provide us with the code of how you update the data when toggling the checkbox from the video. Also, which data source do you use?
Alternatively, you can use setReport API call and update data using it as illustrated in the following JSFiddle: https://jsfiddle.net/flexmonster/sjnu0fm3/ 

Looking forward to your response.

Kind regards,
Nadia

Public
Fabrizio September 16, 2022

Hi Nadia,
I use the updateData function, not set Report.
My function for update is:

function updateDataJSON_dinamica(myUrl) {
    $("#myUrl").val(myUrl);
    pivot.updateData({
        filename: myUrl
    });
}
 

Can I use the updateData function or I have to change the code?
 
Thanks
 

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster September 19, 2022

Hello,

Thank you for providing us with the details.

In case you want to display the data on the grid without the "(vuoto)" level, the recommended approach is to use the setReport API call instead of updateData

Please let us know if it works for you. Feel free to contact us if other questions arise.

Kind regards,
Nadia 

Please login or Register to Submit Answer