cancel
Showing results for 
Search instead for 
Did you mean: 

Embedded Component Query

Former Member
0 Kudos

Hey

I have a Business Object with 2 elements in it:

  • TypeID (Codelist)
  • Statement (Extended Text)

I also have an embedded component in which I need to display certain data from that BO.

So I've made a query and a DefaultSet (in the EC) to get and then sort that data.

However I am not sure how to execute the query and then get the data into either a ListPane or Browse and Collect.

Any help is appreciated.

Thanks !

Accepted Solutions (0)

Answers (1)

Answers (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Will,

I am a bit puzzled: What do you want to achive?

From the design of the bO I would assume you want to define a codelist.

Thsi can be done more easily via the "Add new Item" dialog.

Second, an EC is normally bound anyhow to the enveloping BO.

So a retrieve is the normal operation.

Can you exaplain your use case?

Bye,

   Horst

Former Member
0 Kudos

Oops, just realised it isn't very clear. I managed to find a solution anyway.

Just got another quick question...

I have an embedded component in the project management screen. Would I use an inport to get the project ID of the project? If so how I would do that.

Thanks

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Will,

If you need any information from the enveloping UI you need to map the outport to an inport of the EC.

Bye,

    Horst

Former Member
0 Kudos

Thanks for the reply Horst

Unfortunately it seems that the projectID isn't in an outport (can't edit due to extensibility). However ProjectUUID is, so would this still work for "tying" data to a project?

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Will,

AFAI remember the UUIID is an AlternativeKey for the Project. Therefore you map and use use it to retrieve the data.

Bye,

   Horst

Former Member
0 Kudos

OK so if I create a node in my BO to store the data, would I need to include ProjectUUID as an element or not?

Thanks

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Will,

It is most common to use the Identifier / UUID / ... as AlternativeKey of the Shadow / Proxy / Custom BO

So: Yes.

Bye,

  Horst

Former Member
0 Kudos

Ok, so I have made an inport and a BOOperation to read.

That inport then triggers this eventhandler.

I am not sure that the BOOperation is correct? Do I need to add anything to the path?

One more question, If I have a browse and collect, how would I save the items on the right list into a node? I am not sure how I can access the data and then transport it to the node.

Thanks

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello WIll,

The inport - event handler - data operation looks good.

I didn't get what you mean with "the items on the right list"

Can you explain?

Bye,

   Horst