Working with editble Lists

  • 19 August 2014
  • 2 replies
  • 1 view

Badge +3

Hi,

I have this scenario:
1 control (picker) to search and select users from Active Directory, using SharePoint Integration SmartObject.
1 Button to insert the user selected on the previous control and add it into editable list
1 Editable List that receives the selected users (Smartobject based in one SQL table)
1 Button to Cancel all operations executed (not working yet)
1 Button to Save Changes made (not working yet)

At this moment i can insert users on SmartObject. But now I want to revert the changes.

I'm thinking on this solution when the button to insert user is clicked:
- Just add new list row;
- Populate the new row with data returned from picker (do not save it on smartobject at this moment);
- repeat this method how much times needed;

I can add the new row, but i can't populate it. The objective of this workaround is to insert new list rows but do not save it into smartobject. I just save it into Smartobject if we pressed on Save Changes button, using the rule that creates new item for the rows that have specific state (added).

This is possible?

Best Regards,
Óscar Gomes


2 replies

Badge +1

Hi,

 

Yes, it's perfectly possible.

A default Editable List works like that.

- Add Button ==> Add Row and apply change

- Save button ==> Create Rows with state "Added"

                                  Update Rows with state "Updated"

                                  Delete Row with state "Deleted

 

In your case, after add new Row, and populate it (with tranfert Data), you have to "apply changes" (rule) on the list.

See all the rules of Default button for a Edit List.

i'm not sure if i was clear.

 

how to populate à Line.

Actions

- Add new row

- transfert Data (Edit List Control "Add/Edit Row" = "your data"

- Apply the changes made to the row

 

HTH

 

Regards,

Jay-Z

Badge +3

Hi JayZ,

 

Thank you so much.

 

Best Regards,

Óscar Gomes

Reply