I want to be able to show the number of related items contained in the tab label.
Assuming we are using a tab view to replace the SFDC standard related lists, the user has no idea whether the tabs have any data in them.
The ability to use template date {{}} in the tab label would be huge, and let the user know which tabs have information in them.
This comes from my initial interaction with the Account View Starter Page in Skuid sample pages. There are 8 tabs.
Jacob
Assuming we are using a tab view to replace the SFDC standard related lists, the user has no idea whether the tabs have any data in them.
The ability to use template date {{}} in the tab label would be huge, and let the user know which tabs have information in them.
This comes from my initial interaction with the Account View Starter Page in Skuid sample pages. There are 8 tabs.
Jacob
Zach McElrath, Employee
http://help.skuidify.com/s/tutorials/...
Jacob Flatter
Glenn Elliott, Champion
Glenn Elliott, Champion
I have a wizard that creates work items. At the start of the wizard, the NewWorkItems model has no rows, but by step 3 it has (say) 2 rows. In the console, when I run skuid.$M('NewWorkItems').data.length, I get 2. But in step 3 I display a template that says "Creating {{{$Model.NewWorkItems.data.length}}} work items." and it always returns 0. Does that merge syntax work for models that are empty at the time of initial page load?
Zach McElrath, Employee
There is an option on the Wizard component called "Defer rendering of step contents" --- do you have that turned on?
Glenn Elliott, Champion
Zach McElrath, Employee
Glenn Elliott, Champion
Zach McElrath, Employee
Glenn Elliott, Champion
(BTW, "voodoo" in Australian translates as "probable user error".)
Craig Rosenbaum
Zach McElrath, Employee
skuid.component.getById("MyTabSet").render();
In the future we'd like to improve the Tab Set component so that Tab labels containing merge data will be updated whenever the merges need to change... but unfortunately the Tab Labels are static right now.
Craig Rosenbaum
Zach McElrath, Employee
Anyway, here's a more optimized way to forcibly re-run the merges for Tab Labels in a particular Tab Set:
var TAB_SET_ID = 'MainTabSet';
var c = skuid.component.getById(TAB_SET_ID);
var tabsXML = c.xmlDefinition.children('tabs').children();
c.element.children('.ui-tabs-nav').children().each(function(i){
var tabName = tabsXML.eq(i).attr('name');
skuid.$(this).find('.nx-template').empty().append(skuid.utils.merge('global',tabName).html());
});
Craig Rosenbaum
Sunny Sharma
A similar requirement for Attachment object. When user is deleting attachment from table and clicks save, then tab title is updated. however, when user is uploading attachment using "file upload" option, it doesn't refresh as snippet is not executed. Any way of doing this fr attachments?
Sunny Sharma
had to specify snippet in model actions for requery event.