View Poll Results: Is this thread helpful

Voters
3. You may not vote on this poll
  • Yes

    2 66.67%
  • No

    1 33.33%
Results 1 to 5 of 5

Thread: Get Handle of documents selected by checkbox

  1. #1

    Question Get Handle of documents selected by checkbox

    In a lotus web application, I have used checkbox in the UIview, I am able to get the handle of the documents selected if I select documents pressing ctl+click using ExtndApp.ui.uiView.grid.getSelectionModel().getSelections(); .

    Now I have created checkbox in first column of the view using code "<input name='ChkDocid' type='checkbox' id='"[email protected](@DocumentUniqueID)+"'>". I am able to view the checkbox on web also I am able to select the checkbox but I am unable to get the handle of the document selected using checkbox.

    Can anyone provide me the code to get the handle of the documents selected using checkbox ?.

    Thanks In Advance.
    Attached Images Attached Images

  2. #2
    Ext User
    Join Date
    Apr 2007
    Location
    Melbourne, Australia
    Posts
    169

    Default

    Quote Originally Posted by R.J View Post
    In a lotus web application, I have used checkbox in the UIview, I am able to get the handle of the documents selected if I select documents pressing ctl+click using ExtndApp.ui.uiView.grid.getSelectionModel().getSelections(); .

    Now I have created checkbox in first column of the view using code "<input name='ChkDocid' type='checkbox' id='"[email protected](@DocumentUniqueID)+"'>". I am able to view the checkbox on web also I am able to select the checkbox but I am unable to get the handle of the document selected using checkbox.

    Can anyone provide me the code to get the handle of the documents selected using checkbox ?.

    Thanks In Advance.
    I believe extnd already has a way to select by check box but it will appear as the first column similar to how lotus notes works. Just add:

    PHP Code:
    selModelConfig: {type'checkbox'}, 
    To your uiView config to get:
    Attached Images Attached Images

  3. #3

    Question

    Thanks Zakaroonikov for the help.

    Is this functionality(i.e selModelConfig: {type: 'checkbox'}) available on ext.nd 2x ?. I have downloaded extnd 3x and the checkboxes are displayed on the left most column automatically.

    How to get the handle of the selected checkboxes ? Please find the screenshot for your reference.

    Any Hints ?

    Thanks In Advance.
    Last edited by R.J; 7 Dec 2009 at 1:01 AM. Reason: Add comments

  4. #4
    Sencha - Services Team
    Join Date
    Mar 2007
    Location
    Foristell, MO
    Posts
    1,121

    Default

    Quote Originally Posted by R.J View Post
    Thanks Zakaroonikov for the help.

    Is this functionality(i.e selModelConfig: {type: 'checkbox'}) available on ext.nd 2x ?. I have downloaded extnd 3x and the checkboxes are displayed on the left most column automatically.

    How to get the handle of the selected checkboxes ? Please find the screenshot for your reference.

    Any Hints ?

    Thanks In Advance.
    The checkboxes are added automatically if the view is setup in Domino Designer that way. Otherwise, you can do what Zakaroonikov says and pass in type: 'checkbox' to the 'selModelConfig' property.

    Then, to get the selected documents from an action button you can do this:

    Code:
    this.getUIView().getDocuments();
    Then you can loop through this collection to get the unid of each doc.

  5. #5

    Wink Solved :)

    Hey that has solved my problem.!!

    Thanks a lot jratcliff & Zakaroonikov. Takecare....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •