cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying data from the OWL

Former Member
0 Kudos

Hi everyone,

I would like to know if is possible to modify data from the OWL, because I need to create a functionality that takes a corresponding field of a custom BO from the OWL and change it for another one. In details, something like the following:

OWL:

When I click in the button Reassign I should be to able to modify the field Material for another one available in a list that I load from another BO (using modal dialog):

Advance List Pane:

In this way, I can change the value for another material, for example LK18, and it correctly changes: 

However, when I save it, the field material has the same value at the beginning i.e LK3 ... This is because it changes the material value in the data list of the OWL (using scripts) that I'm using to load the values but not directly in the object.

I really tried different options to save it, however I don't know how to obtain the value LK18 (for example) and assign it to the value in the instance of the object.

Is it possible?

Best Regards.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Luisa,

This can be done. You can store the data in a separate BO and retrieve it in the ABSL for the action re-assign.

Former Member
0 Kudos

But I need to know how can I store a DataField in an element of a BO ..

Former Member
0 Kudos

It is possible! Follow the below steps.

1. When you select an instance in the OWL and click on Reassign, do the following.

     a. A EventHandler should be called with the below operations configured

    

  • "ShowModalDialog" --> To open a modal dialog
  • "ExecuteDefaultSet" --> To show the second BO instances in the Modal dialog. of course you need to have a data list binded to the second BO and the same should be used in the result list of your query.

        I hope you must have already done the above two steps.

  • "BOOperation" --> To read the selected BO (first BO) instance. To do this, configure the operation type as "Read" and pass the UUID of the instance which is selected in OWL using the parameter binding. Also in the "Path" select a structure, which should be binded to the first BO. See the below screenshot for reference. As a result, a structure binded to the first BO hold the data in edit mode. Similar to QAF.
  • Script --> Now write a ruby scipt to assign the material ID. Similar to what you have already done. Only change here is, you are assigning to the data field which is present under a structure which holds the data of your first BO in read mode.
  • Window Action "Save"--> Finally Save. This will save the vaue in first BO.

  I am afraid if the above info is clear or not. But in short, this is the logic. Your instance should be in edit/read mode (i.e. BOOperation "READ") in order to get the changes saved in BO. Thats why when you open the modal dialog, try to read the instance which you selected in OWL and assign it to a data structure (which should be binded to the first BO). Now whatever change you make to this data structure -> data fields and save, it will be saved in the BO. Hope you got it.

abhishek_raj07
Participant
0 Kudos

Hi Hari,

Opening Quick Create(on selecting copy button on OWL) with the fields copied from the selected recor...

I have business scenario in which I have to open the quick create in the owl screen by clicking on the copy button and fields should be copied from the selected record in the owl screen.Please find the attached screen shot for reference.Kindly provide the documentation for the same or how to implement that functionality.I think so some font end scripting must be use here.But I am new to front end scripting and not know how to implement it on the OWL screen.

Thanks,

Abhishek Raj

0 Kudos

Hi,

I am not sure what all are done by you technically. But below is what I would do. Hope this helps you.

When you mean scripts, Is this ABSL? Ideally this should match with some action on your Custom BO where the change of material takes places in this(ABSL). Also you need to ensure in the configuration of action to have a SAVE called implicitly(Can be done in UI Designer).

Once these are done the Save happens. Also you can Save attributes of other BO's as well.

Kind Regards,

Sham.

Former Member
0 Kudos

Sorry Luisa, but data can only be changed via a QAF/OIF, Service Integration, o=r Web Service

Former Member
0 Kudos

Judson,

Thanks for your clarification, this was a doubt and I'm sure now