cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure this OWL?

Former Member
0 Kudos

Hi guys:

         I create a BO like this:

                                        businessobject Test{

                                             element ID :IdentityID;

                                             element name :LANGUAGEINDEPENDENT_MEDIUM_Name;

                                       }

         then I create screens.

However when i log on the tenant and click my work center,i can see all data created by other users!  if i just want to see the data i created,what should i do?

Accepted Solutions (1)

Accepted Solutions (1)

former_member200567
Active Contributor
0 Kudos

Hi, Chaowei,

     I have never done this before.

     But I have some thoughts.

1.    You should create you BO in this way.

     businessobject Test{

         element UserID;

         element ID:IdentyID;

         element name:Name;

   

     }

Save the entry along with your UserID.

In OWL , do this.

1.   In the controller tap, click query

2. Add a data field to the SearchParameter in datamodel tap.

3.   In selected query parameters, add the user ID by selecting the UserID of your BO and clicking the      down arrow button.

4. Bind that parameter with the data field that you have added to the SearchParameters.

5. Click default set under the query in control tap.You will see the UserID as a query parameter.

6. Click that query parameter and click + sign.

7. In select option,select equals and in the Low Value field, write your user ID.

Save and activate.

Hope this help.

Regards,

May T.


   

Former Member
0 Kudos

Thank you very much! I will tell you the result later!

Former Member
0 Kudos

Hi May:

           I'm sorry to tell you that your thought does not work very well, as you know different users have different UserID,In your step 7, I just can write my UserID, but when others users logon ,they can see only  my information not their information! Do you have any other good ideas about this problem?

former_member200567
Active Contributor
0 Kudos

Hi, Chaowei,

     Sorry, I thought only you wanted to see your data.

     So, I think you should use FieldTransformation for that.In step 7, at the last field you will see      FieldTransformation.

1.Create a ReuseLibrary

2.Create a Read function that returns the current UserID.

*Please refer to the studio documentation for creating a reuse library and a read function and field transformation.

Hope this help.

Regards,

May T.

Former Member
0 Kudos

Thank you for your patience, i will tell you the result later.

Former Member
0 Kudos

Hi May:

          During tried these two steps,i met some questions:(1) i use filed transformation to find there is no items under "Transformation"(I have tried all the items in the namespace) ,you can see  in the picture:

                          

(2)about the studio document, there is nothing about creating a filed transformation,creating a ReuseLibrary or creating a function! you can see in the picture:

former_member200567
Active Contributor
0 Kudos

Hi, Chaowei,

     Sorry for my mistake.

     The information is in at page 366 of the studio documentation.

8.5 Reuse Libraries

If u can't find it.

1. Create a reuse library . It is like creating a bo or a screen.

2. Create a read function in that reuse library. Include a return field. (be careful with the return data type)

3. The library will produce an ABSL file where you can write your retrieve code.

4   Retrieve the UserID and asign the UserID to the result.

After you have created all the above steps, you will find your function in field transformation.

Hope this help.

Regards,

May T

Former Member
0 Kudos

Hi May:

          I did as you said,first I created a ReuseLibrary,then i create a function(read-only) :

function:

However i still can not find my transformation!

Is something wrong with my ReuseLibrary? Maybe our studio documents are different, can you give me one piece of your Studio document?

Thank you!

former_member200567
Active Contributor
0 Kudos

Hi,

You don't have to include import parameter in function

You just need to include one return parameter that has the same data type of UserID.

And after activating the ABSL, please activate the reuse library too.

And please update the UI designer by clicking the Update Meta Data on the tool bar.

Hope this helps.

Regards,

may t.

Former Member
0 Kudos

Thank you very much! It works very well!

former_member200567
Active Contributor
0 Kudos

You are welcome.

Regards,

May T.

Answers (0)