Update page include from table row action?

Matt SonesMatt Sones Member ✭✭
edited April 2017 in Questions
Is there a way to update a page include from a table row action?

I really want to use a table, not a queue.


  • Rob HatchRob Hatch Skuad, Sonar ✭✭
    edited September 2016
    There are no declarative mechanisms to pass the query string into a page include and refresh the include.  What we would reccomend would be to put your detail content on the same page with your table.  The models for your detail should not load any data on page load, and should have filterable conditions to narrow down to the same single record from your table row.  

    Then in your table row - the row action should activate the conditions in the detail models and requery those models.  This will show the detail associated with the row in the table. 

    Hope this works.. 
  • Matt SonesMatt Sones Member ✭✭
    edited February 2017
    Thanks, Rob. I've done what you were describing before... I was just hoping not to have to recreate the detail pages.

    Off to copy and paste some XML! :)
  • Joe OrtJoe Ort Member
    edited February 2015
    It sounds like you're attempting something similar to the Case Management page on the repo.
    I'm about to try a similar concept and I'll see if I can't update the javascript that does the "View Case" work.

    var detailModel = skuid.model.getModel('CaseDetail'); var detailCommentsModel = skuid.model.getModel('CaseDetailComments'); var detailTasksModel = skuid.model.getModel('CaseDetailTasks'); var detailCondition = detailModel.getConditionByName('CaseId'); var detailCommentsCondition = detailCommentsModel.getConditionByName('CaseId'); var detailTasksCondition = detailTasksModel.getConditionByName('CaseId'); detailModel.setCondition(detailCondition,args.item.row.Id,true); detailCommentsModel.setCondition(detailCommentsCondition,args.item.row.Id,true); detailTasksModel.setCondition(detailTasksCondition,args.item.row.Id,true); skuid.model.updateData([detailModel,detailCommentsModel,detailTasksModel]);
  • Rob HatchRob Hatch Skuad, Sonar ✭✭
    edited September 2016
    That case management page was built before we had the action framework. The javascript in that page is now really not necessary when you chain together a number of actions. 
  • Glenn ElliottGlenn Elliott Member
    edited April 2017
    That's pretty cool, Moshe. I've spent the Christmas break playing around with single page app concepts and page includes in Skuid and this might come in rather handy. Thanks for sharing.
Sign In or Register to comment.