/scripts/ahub.form.attachments.js
0

Filter on OWL

Mar 10, 2017 at 04:17 AM

127

avatar image
Former Member

Hi,

I have added the owl screen of custom BO as the new tab in the standard BO.

The data is appearing in this new tab. I have created the filter also as per the "

https://blogs.sap.com/2015/03/03/how-to-create-an-advanced-filter-in-custom-owl-screen/

" is there any way I can create a filter which selects only relavant values not all.

e.g. I have created a CoContactsBO and added this BOs owl screen into the accounts as the new tab. the data appears in the new tab.

here all the data is selected but as the correct data only last line should appear.

in the filter I created works when we enter the filter value in that but not automatically.

is there any way to do it?

regards,

cizyr.png (35.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Saurabh Kabra
Mar 10, 2017 at 05:43 AM
0

Hi,

When attaching your OWL to Account screen you might have done the binding to pass the parameters for navigation. There you need to pass also AccountID from Standard Outport to Inport of your screen. And the event triggered should have an additional step(In Event Handler) to pass Inport AccountID to Query AccountID Parameter . Please refer the Attached Snap shot for Reference.


pass-account-id.png (172.3 kB)
snapshot2.png (101.3 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 10, 2017 at 07:18 AM
0

Hi saurabh,

Inport is in .EC and I am getting the standard AccountID there already as in the first screen above

.

Do you mean that I should pass the Account ID in Embedded component Query AccountID as there is no Inport in OWL?

Regards,

Amrit


k61n8.png (60.6 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Amrit,

Yes correct , you have to pass the InPort Account ID to the Query Account ID.

Thanks

Saurabh

0
avatar image
Former Member Mar 15, 2017 at 07:33 AM
0

HI Saurabh,

How can I do that?

Regards,

Amrit

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Amrit,

We did the similar thing in our project . For your case lets create simple BO with following structure:

import AP.Common.GDT as apCommonGDT;
businessobject ACC {
element AccountID : BusinessPartnerInternalID;
element Value : DecimalValue;
}

step 1.Now Create a EC. Open the EC and Go To ToolBox and Add a 'AdvanceListPane' to your screen.

alp.png

Step 2.Please do bind the newly added List Pane and its corresponding data list as attached:

bindings.png

Step 3.Create a new Inport in your EC. Configure it as follow: (Event Handler Config is explained in following section )

inportconfig.png

Step 4. Create a new Query in your EC and configure it as attached:

queryconfig.png (make sure you bind the result data list which is in this case the same as in step 2.)

Step 5.Configure the Corresponding Event Handler as attached:

eventhandler.png

Step 6. Attached the EC Created to standard Screen.

ec-binding-to-std.png

Thats it!.

my BO Data:

my-bo-data.png

Test Result:

test1.png

test2.png

Thanks

Saurabh

bindings.png (113.7 kB)
inportconfig.png (65.5 kB)
alp.png (39.6 kB)
eventhandler.png (70.7 kB)
queryconfig.png (111.9 kB)
my-bo-data.png (82.0 kB)
test1.png (58.1 kB)
test2.png (51.9 kB)
0
Skip to Content