on 12-11-2008 6:24 AM
Hi,
Can we combine the search criteria of Standard iView and search criteria of Custom iView ?
Currently a custom iView which has been developed in WebDynpro for Java works successfully in isolation and updates the Result Set accordingly.
However what we really need is to combine the search criteria of Standard iView and Custom iView ?
Regards,
Subramanian V.
Hi Subramanian,
The main task was to establish communication between Custom iView and Standard (Resultset) iView and there is already connection between standard iViews i.e. Search and Resultset. Now just place all the iViews in one page and test the scenario. I think it should work.
Regards,
Jitesh Talreja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jitesh,
Thank you for your response.
There are a few search iViews which could not be created using MDM Portal Configuration. We have created these iViews using WebDynpro for Java. These Custom Search iViews raise an event and Result Set gets updated properly. The Result Set only gets updated if we fire the event updateSearch through our Custom Search - WebDynpro application.
What we need is : pick all the search criteria in the Search iViews created through MDM Portal Configuration and also the search criteria in the Search iViews that we raise through our custom Web Dynpro application ?
Regards,
Subramanian V.
Hi Subramanian,
I understood your requirement exactly. What i am assuming here is first your Custom Search iView will update the Resultset (Which is working fine) and then Standard Search iView will take this Updated Resultset to update it further and this will happen when all three iViews are placed in same page.
If there were only 2 standard iViews in the same page - Search and Resultset then eventing will work fine i.e. Resultset iView will get updated based on Search criteria
Now your custom scenario is working fine i.e. Custom Search iView and Resultset iView
when we combine the above scenarios, I think we should get the desired result.
Just try placing all the 3 iViews in same page and check the result.
Regards,
Jitesh Talreja
Hi Subramanian,
Case1: Update the Resultset iView with standard Search iView and then change the criteria in Custom Search iView. Check the output.
Case2: Update the Resultset iView with Custom Search iView and then change the criteria in Standard Search iView. Check the output.
Currently what output you are getting i.e. after updating Resultset iView by setting search criteria in Custom Search iView and then applying criteria in standard Search iView.
Regards,
Jitesh Talreja
Jitesh: They work independently of each other. That is, the result set details are mutually exclusive of both these events.
Does anyone know what event does these Configured Search iViews raise and ResultSet listen to ?
I tried to subscribe to both :
updateSearch and getRecordByIds and I get nothing.
I am able to fire getRecordByIds from my custom WebDynpro application and ResultSet is able to listen to this.
Regards,
Subramanian V.
Edited by: Subramanian Venkateswaran on Dec 11, 2008 4:39 PM
Edited by: Subramanian Venkateswaran on Dec 11, 2008 4:42 PM
In help, I find this :
http://help.sap.com/saphelp_mdm550/helpdata/en/45/c87cfd43e56f75e10000000a1553f6/frameset.htm
EPCM.raiseEvent(urn:com.sap.pct.mdm.appl.masteriviews,updateSearh,[MDM System Alias=<systemalias>]&[MDMTableName=<tablecodename>]
&fieldname1=value1&fieldname2=value2
I have a field called MDM ID, whose codename is MDM_ID.
Through Web Dynpro I raise this event as follows :
WDPortalEventing.fire("urn:com.sap.pct.mdm.appl.masteriviews",
"updateSearch",
"MDMSystemAlias=SAP_MDM_Repository_Prod&MDMTableName=Products&MDM_ID=5000");
Should I put codename or something else here ?
If I put codename this is what I get.
Error occurred: Error performing search. com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter, com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter (see log for details)
Regards,
Subramanian V.
Hello, Subramanian
I've read this thread while having some problems with the same scenario as Yours.
But now I could make two iViews (one WebDynpro-based iView and one based on MDM Business Package), so that if I put filters in one iView and on second iView, both effect ResulSet iView and SearchStates iView.
Also getRecordByIds works fine for me.
If You are still interseted in this thread, please, let me know.
Regards,
Renat
Edited by: renat sha on Mar 2, 2009 2:15 PM
What I've done is put filter in Component Controller of WD-component using
WDPortalEventing.fire
I have CODE field in my ResultSet iView and I use it for filtering records
WDPortalEventing.fire("urn:com.sap.pct.mdm.appl.masteriviews",
"updateSearch",
"MDM System Alias=&MDMTableName=BudgetItem&CODE=1");
As a result I see that records of ResultSet are filtered.
As a second step I set filter using TextSearch iView and it works fine, both filters effect ResultSet iView and both filters are shown in SearchState iView.
Try setting Cache Level to None and Allow Client-Side Caching to No for Your iViews.
Also, could You provide Your code sample for Component Controller and WebDynpro iView.
Regards
Renat
Edited by: renat sha on Mar 3, 2009 7:52 AM
sorry, I have same task and tried same code for my alias, table and field.
WDPortalEventing.fire("urn:com.sap.pct.mdm.appl.masteriviews",
"updateSearch",
"MDMSystemAlias=NSI_PRODUCTION_ALIAS&MDMTableName=Assets&R3Code=411000000000000006&RefreshSearch=True");
I fire event (for my alias, table and field)
but not any resultset or Current Search on page is catching this search.
please provide which options must be set made for views on page so that result set to be updated,
I hope this may help
does it need to add some custom event to result set?
thanks
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.