Record Tab label shows Loading

Geetika4
Mega Expert

Hi,
In CSM WS(configurable), the record page is showing different behaviour based on how I am trying to load it. I I try to search it by number I see the Record tab label as "Loading" and If I select it by clicking on Row from a List, the Record tab shows the number which is my expectation. Attaching screenshot for reference..
find_real_file.png

1 ACCEPTED SOLUTION

Barrilito van D
Kilo Guru

Hi Geetika,

Everything that is custom results in these "loading.." tabs.

You can use the helper functions in a client script to fix this and set a title to your tab:

helpers.screen.updateStatus({
        title: 'CS123456'
    });

View solution in original post

5 REPLIES 5

Saurav11
Kilo Patron
Kilo Patron

hello,

Can you show some screenshots on how you are searching it when the loading tab is appearing. As i tried on my PDI it looks fine

Thanks.

Barrilito van D
Kilo Guru

Hi Geetika,

Everything that is custom results in these "loading.." tabs.

You can use the helper functions in a client script to fix this and set a title to your tab:

helpers.screen.updateStatus({
        title: 'CS123456'
    });

Gunjan Agrawal
Tera Expert

Hi @Geetika 

 

Can you you please help me from where did you configured this tabs. 

 

find_real_file.png

Hey @Gunjan Agrawal 

If you are asking about how the tabs are developed at first place, There is a "Record" Page, I made copy of it, because I needed to customise it. 

And If you are asking about the solution to this tab issue, I followed below steps:

  1. Make sure you have tab title available on the form, it might be already fetched by a data broker. In my case the record number was fetched by data resource Glide form.
  2. Created a client script with below code

function handler({api, event, helpers, imports}) {

    helpers.screen.updateStatus({

        title: api.data.gform.nowRecordCommonHeader.recordDisplayValue

    });

}

Data resource Glide form was returning object nowRecordCommonHeader which had key value recordDisplayValue containing the record number.

 

  1. Go to the Glide Form data source and add this client script to Event Glide Form data broker fetches succeeded (Form) and save.