Have you checked out our sample management pages on the repo? They allow you to do something like this: pick a record from a list in one part of your page, and then view its details on the right. Eventually we want to make this its own component because it’s a very useful feature. Is this the sort of thing you were thinking about?
Anna, That’s what I want to do Which page is in your illustration ? I guess I can look at it and figure out how to link the tables together I find sometimes in SKUID that until I understand where all the settings are even looking at an example doesn’t necessary tell me how to do something… thanks ken
True story. I’m going to make this suggestion an idea.
(I made a related Idea conversation for this conversation). Please reference the new topic here: Make a “Management” / Detail-List Component
// create a variable that represents the model you want to filter var detailModel = skuid.model.getModel('Client_Statement_Payment_Detail'); // create a variable that represents the condition you want to invoke on the model you want to filter var detailCondition = detailModel.getCondition('Client_Statement__c'); // set the condition to the id of the current row var detailModel.setCondition(detailCondition,args.item.row.Id,true); // update the model you are filtering skuid.model.updateData([detailModel]);
i get “unexpected token” for the “setcondition” line… and it looks like the “true” is what it is complaining about
Hi Ken, Try changing this…
var detailCondition = detailModel.getCondition('Client_Statement__c');
var detailCondition = detailModel.getConditionByName('Client_Statement__c');
Unfortunately we’re getting into parts of the skuid api that are yet undocumented. We’re hoping to add these methods to our documentation soon.
thanks ben, that gave the same error i decided that detailModel.setCondition line should not start with var… as the variable is already defined so i changed that and now i get an error that thinks that “detailModel” is undefined
var detailModel = skuid.model.getModel('Client_Statement_Payment_Detail'); var detailCondition = detailModel.getCondition('Client_Statement__c'); detailModel.setCondition(detailCondition,args.item.row.Id,true); skuid.model.updateData([detailModel]);
the error is on the line that tries to set detailCondition the error is can’t call getModel on undefined you can see from the screen shot that i do have a model of the right name and it does have a condition with the right name
From the code you just posted, I’m still seeing that you’re using “getCondition” instead of “getConditionByName”
ben, yes, but changing that still throws the same error Uncaught TypeError: Cannot call method ‘getConditionByName’ of undefined
Ben, Bingo, that was it this one has bitten me before… i should have noticed now the page is working
Unless you still want to use the table view as the main driver, right?
The capabilities and customizations listed above will all still work. If you want to drive it all off a table its still there.
Cool, got it working using the table and JS Snippet.