Announcement Announcement Module
Collapse
No announcement yet.
trying to add new dialog box to table.tagx Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • trying to add new dialog box to table.tagx

    Hi,
    I am new to spring roo. I am trying to add a dialog box in table.tagx such that on click of update the dialog box appears. But is not working . Please help.

  • #2
    Originally posted by rajiraju View Post
    Hi,
    I am new to spring roo. I am trying to add a dialog box in table.tagx such that on click of update the dialog box appears. But is not working . Please help.
    Hi,
    For this u have modify update.tagx file. Use the following javascript code in ur update.tagx. In the below code, using id attribute i am getting the form id and making use of jquery dialog(). It working for me.

    $(document).ready(function(){
    var id='${id}';
    var idLastIndex=id.lastIndexOf('_')+1;
    var formId=id.substring(parseInt(idLastIndex,10),id.le ngth);
    var formIdLowerCase=formId.toLowerCase();
    $("#"+formIdLowerCase).dialog();
    });

    Comment


    • #3
      Thanks Balamurugan. We also found a way. The code below is added in table.tagx after the update image:
      <script type="text/javascript">
      Spring.addDecoration(new Spring.AjaxEventDecoration({
      elementId: "update_${itemId}",
      event: "onclick",
      popup: true
      }));
      </script>

      Comment

      Working...
      X