How to Implement the Search page for Workflow Notifications?

Hi All,
I want to implement the new Search page for Workflow Notifications. Search page containing Company, Paygroup, Source, Initiator, Supplier Name, From date & To date fields. These fields(Poplist & Calendar) are getting the values from different tables and these fields are not in WF_NOTIFICATIONS table only Initiator & dates are there. After selecting the values in all fields or one field based upon these values I want to display the all Workflow Notifications ( Those are satisfy the search criteria only not all ) in Advance Worklist Table RN in the Notifications page. Is it possible to create the Search page based upon the above scenario if Yes Let me know how to implement this search page for Workflow. Page was designed but how to get the sortlisted Notifications and how to pass these values to next page?
Thanks in advance.
Edited by: user635152 on Nov 13, 2008 10:53 AM

Hi Guru,
I crete the Search page having 5 poplists and select the values from dropdown list and click GO button it serch the records and displays that records in ResultsTable in same page.
My case, Search page is running fine if I select the values and click GO button page is refreshed without errors but I am unable to displays the records in ResultsTable.
What I am missing?
My Select Stmt:
SELECT * FROM      
(select wn.nid notification_id
,ou.name company
          ,I.PAY_GROUP_LOOKUP_CODE paygroup
          ,'AP' source
          ,pf.full_name initiator
          ,pv.vendor_name supplier_name
          ,I.GL_DATE FROM_TO_DATE
from ap_invoices_all i
, po_vendors pv
     , hr_operating_units ou
     , per_all_people_f pf     
     , FND_USER FU
, (SELECT trim(substr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),
1,instr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),' for'))) inv_no
,notification_id nid
FROM WF_NOTIFICATIONS WN
WHERE WN.MESSAGE_TYPE = 'APINV'
AND WN.STATUS NOT IN ('CANCELED','CLOSED')) wn
where i.vendor_id = pv.vendor_id
and i.invoice_num = wn.inv_no
and i.WFAPPROVAL_STATUS = 'REQUIRED'
and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
and i.org_id = OU.organization_id
AND OU.name like nvl(:company_name,name)
and i.pay_group_lookup_code = nvl(:pay_group,i.pay_group_lookup_code)
and exists (select ad.invoice_id
from ap_invoice_distributions_all ad
where ad.invoice_id = i.invoice_id
and ad.accounting_date between nvl(:from_date,ad.accounting_date)
                                   and nvl(:to_date,ad.accounting_date))
and 'AP' = nvl(:source,'AP')
     and i.created_by = fu.user_id
     AND fu.EMPLOYEE_ID = pf.person_id
     AND pf.full_name like nvl(:initiator, pf.full_name)
UNION ALL
          select po_num.nid notification_id
          ,ou.name company
          ,ps.PAY_GROUP_LOOKUP_CODE paygroup
          ,'PO' source
          ,pf.full_name initiator
          ,pv.vendor_name supplier_name
          ,P.CREATION_DATE FROM_TO_DATE
     from po_headers_all p
     ,po_vendors pv
          ,po_vendor_sites_all ps
          ,hr_operating_units ou
          ,per_all_people_f pf
     ,(select trim(substr(wn.subject,24,instr(wn.subject,' for')-24)) po_no, notification_id nid
          FROM WF_NOTIFICATIONS WN
     WHERE WN.MESSAGE_TYPE = 'POAPPRV'
     AND WN.STATUS NOT IN ('CANCELED','CLOSED')
     and wn.subject like 'Standard Purchase Order%') po_num
     where p.SEGMENT1 = po_num.po_no
     and p.vendor_id = pv.vendor_id
     and p.org_id in(select organization_id
     from hr_operating_units
     where name like nvl(:company_name,name))
     and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
     and p.AUTHORIZATION_STATUS = 'IN PROCESS'
     and p.CANCEL_FLAG = 'N'
     and 'PO' = nvl(:source,'PO')
     and p.agent_id = pf.person_id
     and pf.full_name like nvl(:initiator, pf.full_name)
     and pv.vendor_id = ps.vendor_id
     and ps.org_id = ou.organization_id
     and ou.name like nvl(:company_name,name)
and ps.PAY_GROUP_LOOKUP_CODE = nvl(:pay_group,ps.PAY_GROUP_LOOKUP_CODE)
     and trunc(p.creation_date) between nvl(:from_date,trunc(p.creation_date)) and nvl(:to_date,trunc(p.creation_date))
In CO PFR Code:
if (pageContext.getParameter("Go") != null)
OAQueryUtils.checkSelectiveSearchCriteria(pageContext, webBean);
     String COMPANY = pageContext.getParameter("COMPANY");
String PAYGROUP = pageContext.getParameter("PAYGROUP");
String SOURCE = pageContext.getParameter("SOURCE");
String INITIATOR = pageContext.getParameter("INITIATOR");
String SUPPLIER_NAME = pageContext.getParameter("SUPPLIER_NAME");
Boolean executeQuery = BooleanUtils.getBoolean(false);
Serializable[] parameters = { COMPANY, PAYGROUP, SOURCE, INITIATOR, SUPPLIER_NAME, executeQuery};
Class[] paramTypes = { String.class, String.class, String.class, String.class, String.class, Boolean.class };
am.invokeMethod("initSearch", parameters, paramTypes);
OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findChildRecursive("ResultsTable");
table.queryData(pageContext, false);
AM invoke Method():
public void initSearch(String company,
String paygroup,
String source,
String initiator,
String supplier_name,
Boolean executeQuery)
WorklistFindVOImpl vo = getWorklistFindVO1();
if (vo == null)
MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "WorklistFindVO1") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
vo.initQuery(company, paygroup, source, initiator, supplier_name, executeQuery);
VO Code:
public void initQuery(String company,
String paygroup,
String source,
String initiator,
String supplier_name,
Boolean executeQuery)
StringBuffer whereClause = new StringBuffer(500);
Vector parameters = new Vector(5);
int clauseCount = 0;
int bindCount = 0;
setWhereClauseParams(null); // Always reset
if ((company != null))
String companyname = null;
try
companyname = new String(company);
catch(Exception e) {}
whereClause.append("COMPANY= :COMPANY");
whereClause.append(++bindCount);
parameters.addElement(company);
clauseCount++;
if ((paygroup != null) && (!("".equals(paygroup))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("PAYGROUP = :PAYGROUP");
whereClause.append(++bindCount);
parameters.addElement(paygroup);
clauseCount++;
if ((source != null) && (!("".equals(source))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("SOURCE = :SOURCE");
whereClause.append(++bindCount);
parameters.addElement(source);
clauseCount++;
if ((initiator != null) && (!("".equals(initiator))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("INITIATOR = :INITIATOR");
whereClause.append(++bindCount);
parameters.addElement(initiator);
clauseCount++;
if ((supplier_name != null) && (!("".equals(supplier_name))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("SUPPLIER_NAME = :SUPPLIER_NAME");
whereClause.append(++bindCount);
parameters.addElement(supplier_name);
clauseCount++;
setWhereClause(whereClause.toString());
if (bindCount > 0)
Object[] params = new Object[bindCount];
parameters.copyInto(params);
setWhereClauseParams(params);
if ((executeQuery != null) && (executeQuery.booleanValue()))
executeQuery();
} // end initQuery()
Please let me know what I did mistake in my code?
I am unable to find it what I missing and there is no errors but no records displayed in Results Table.
Please it's urgent.
Thanks
Nag.
Edited by: user635152 on Nov 19, 2008 4:43 PM

Similar Messages

  • How to implement the search help exit to MM01 for Material by product hiera

    Hi,
    How to implement the search help exit to MM01 T-code for Material by product hierarchy,
    but system default it gives the data from MVKE table, my client wants from MARA table,
    i created the one Function Module, write this code in that FM.
    IF CALLCONTROL-STEP EQ 'DISP'.
    REFRESH RECORD_TAB.
    SELECT * FROM MARA INTO TABLE RECORD_TAB
    WHERE PRDHA = 
    ENDIF.
    I Face the problem what variable i have to pass in WHERE CONDITION, FROM THE MM01 T-code.
    is't require to IMPORT variable from MM01 program, what is that import variable, please give me the solution.
    thanks to all.

    Hi there..
    check my web blog on search help exit...
    [Search help exit code|https://wiki.sdn.sap.com/wiki/x/du0]

  • How to find the search help for the parameters stmt in a report

    hi
    how to find the search help for the parameters stmt in a report , that is using which addition to the parameters statement

    I am not sure if I understood the question,but if you meant how to attach a search help to parameter for which a default search help is not available,you can do that by using addition  "Matchcode Object"
    Parameter: a type i matchcode object 'Search Help Name'
    Search Help name should be in single quotes.
    Regards,
    Anubhav.
    P.S: Award Points if useful.

  • How to implement the selfsecured page in oaf

    hi
    any one having knowledge how to implement the selfsecured OAF page documents
    can you please send me [email protected]
    Regards
    Chandra

    Use the search facility on the forum. Did you read the dev guide?
    --Shiv                                                                                                                                                                                       

  • How to change the text mail of Workflow Notification?

    Hi all,
    I would like to change the text mail of workflow notification. I took a look at the Help Sap and saw how to customize the text mail notification. Unfortunately, I could not found the text for workflow Notification at “notificationTexts_<language>.properties”.
    Is possible to change the text mail of Workflow Notification?
    Thanks in advanced,
    Alcides Flach

    Hi Alcides,
    Please refer to the following link.
    https://www.sdn.sap.com/irj/sdn/thread?threadID=40700
    Rajiv

  • How is implemented the search for collab objects?

    Hello everybody!!
    Can someone tell me how are stored the 'cards' (but i'm not sure it's card for collab objects like projects, discussions...)? Because i'm not sure these objects are crawled...
    In fact i would like to disable the search on some specific native collab objects (some projects needs to be hidden completly) but not all. Is it possible??
    Thanks.

    Unfortunately, there is no configuration setting in Collab that you can disable certain types of objects to be indexed, nor can you disable objects from certain projects to be indexed. I am not sure this will help your case, but just FYI: you can disable certain types of documents to be indexed by editing filetypes.xml.

  • How to organise the library best for workflows?

    I need some help to set up my library propperly. I'm using Aperture for a year now and the organisation of my first major project was a bit of a mess and I lost control. I had a folder as top level, then a Project (box) containing folders and smart folders. I wanted to work with keywords only but that didn't work out.
    Now I have an even more complex project and I want to go back to a workflow based structure. But it seems that the boxes, folders and albums aren't quite designed for this kind of organisation. This is what I actually want to do:
    – Top level Project name e.g. Seasons
    – Sub-projects /divisions e.g. Spring, Summer, Autumn, Winter (note that a photo can only be in one category)
    – Workflow sections where photos are moved according to their state of progress, e.g. Import, Editing, Review, Published (again a photo can only be/show in one location)
    This is how I would have liked to do it:
    1. A folder or box as top level called Seasons
    2. Four boxes or albums as sub-divisions for the seasons
    3. Give every step of the workflow an album or folder (like sections to move through)
    Now this is the obstacle I'm facing:
    1. I can't put boxes in boxes
    2. I can't put photos in folders
    3. I can't move photos from one album to another (they need to be deleted separately in the old folder)
    I have read about how these elements are designed in the other threads. But I havent yet found a way how to use them the best way for my purpose. The best thing I can think of at the moment is to use folders in the top two levels and boxes for the workflow.
    Is there anyone who tried to organise a project like this before?

    Hi,
    of course you have to find your own way.
    I just recommend  (I first did something similar to what you plan to do, so who am I, to tell that you shouldn't),
    to start not with Folders as the top level organizer.
    In my opinion you have to think not of files but of pictures.
    So the pictures are organized in PROJECTS and are always ORIGINALS because it is different to Bridge or LR
    not files that you are working with (it takes a while to think this over, I guess).
    So the pictures are now organized inside these folders into ALBUMS with different "workflow states" like
    the originals ( I would name them more: base-pictures or shooting or whatever)
    You pick your stars from 1 to 5 (and 9 to delete) to create kind of a choice from the shoot.
    Out of your choice you create an album for your EDITS and immediatly delete those pictures from the SHOOT-ALBUM ( they are still chosen and still you can make them visible via cmd/F and choose all pictures with 1 star and more- go to PICTURES-DELETE FROM ALBUM).
    So now you have every picture only one time inside your PROJECT and still only one time in only one ALBUM.
    Now you feel free to create some intelligent albums if you need, for checking which ones were taken to a lab for printing or send via email or whatever. For me personally these intelligent albums don't work but this depends on the workflow and your clients.
    The advantage is in my case, I export PROJECTS as so called MEDIATHEK (another AP LIBRARY) to an
    Ext HD, so I have all the adjustments and the order, in case AP starts to work not as I want it ( I had these
    issues a few times in the past and had, what is discussed in this forum as well, thousands of pictures two, and more times without knowing what I did wrong after repairing ).
    Hope this helps
    Uwe

  • SOA 11g -- xsd -- How to access the index page for documents

    Hello Experts,
    Env:
    SOA 11.1.1.6.0
    Web Logic 3.6
    AIA 11g
    OSB 11g
    I have to upgrade existing 10g SOA to 11g and below are my questions..
    1) How and where to copy the 10g XSD files to 11g?
    2) What is he url for xsd docs in 11g. for example: in 1og i can use this url to scan the xsd documents..
    http://<<HOSTNAME>>:<PORT#>/<<XSDDIRECTORY>>/
    3) What is the equivalent in 11g? I see this directory structure in 10g.. $SOA_HOME/Apache/Apache/htdocs..
    4) I am trying this directory structure and got 404 page not found error.. http://<<Host Name>>:<port #>/soa/composer
    Any help is appreciated..
    I consider myself as beginer in SOA stack and apologies for any basic questions..
    Thanks
    Rgds
    Natrajan

    Only thing is you wont be able to browse through URL, not sure though and you can browse through the XSDs and WSDLs through JDeveloper by connecting to MDS.
    http://udayarocks.wordpress.com/2011/03/26/how-to-setup-metadata-store-mds-for-weblogic-11g-in-jdeveloper/
    Thanks,
    Vijay

  • How to get the home page for a user using  Pl/sql code ?

    Hi,
    I have a pl/sql procedure which runs after a form submission on a dynamic page. At end of completion of the procedure I want to send user to his/her home page. I am trying to write at the end of procedure to redirect the user to the home page. How do I do that ? What is way to redirect to a page using pl/sql and how do I know the user home page url ?
    thanks,
    Mainak

    Hi,
    Try <portalschema>.wwv_redirect.url('<portalschema>.home');
    Please replace portalschema with the name of your portal schema.
    Thanks,
    Sharmila

  • How to implement the Tax Data for Material Master IN MDM

    Hello  Experts,
    The MDM 7.1 standard business content does not ship the content required for TAX data implementation. We need to include this however for Material/Vendor/Customer.
    We have alraedy tried the approach of a multivalued lookup table for TAX fileds (Plant,Country,Tax Type, Tax Category, Tax Classfn) and linked it to the Sales DAta Qualified Table.
    but this does not satisfy the interdependencies of SAP ERP  i.e Sales Org-> Distribution Channel-> Plant-> Departure Country-> Tax Type-> Tax classification. We intend to implement this same relation in MDM.
    Kindly guide as to what would be the right approach. Can a qulalified lookup for Tax data be helpful for this scenario?
    Also can anyone secify the correct table or T-Code where we can find this entire dependency in ECC?
    Thanks in advance,
    Elizabeth.

    Hi Elizabeth, hi Shiv,
    as long as you're using MDM for consolidation and harmonization only, you could add the tax information. As for customers (for example), you maintain tax indicators as a child of the sales area. This means for MDM that you need to include the tax indicators in the sales data tuple. As tax indicators are repeatable records, you need to create a nested tuple for that.
    But as Shiv has correctly mentioned, the tax information itself is quite complex in regards to which tax information must be maintained depending on e.g. the country and/or sales area. In MDM it is hardly possible to predefine any mandatory values like it is possible in ERP. So if you plan a central creation of data, you'll most probably have to invest a lot into the correct validations to ensure that you create correct data. Still it needs to be closely investigated if you can do this with the MDM functionality or if you need some external API programming to do the job.
    Best regards
    Michael

  • How to enable the "Reassign" Option in WorkFlow Notification

    Dear All,
    I have sent a workflow test mail to a user, and that user wanted to reassign the notification to other user, Is it possible,,
    In the same workflow page there is a button "Reassign" option which can able to do this reassign, but its show a error like below
    You may not "Reassign" notification "Workflow Notification Mailer Test in DEV01 - Successful!" because reassign has been disabled.It means reassign is successfully done, but the option is disabled,, is int,, can i enable that option,, ?
    Regards
    HAMEED

    Dear Helios,
    Actually we try to reassign test workflow mail from a user. this mail was sent by sysadmin. And our SCM Functional team trying to set up a reassign process of workflow mailer for their requirement. we tried to test this and reassign by user.
    We will update you once we patched the instance.
    Regards
    HAMEED

  • How to enable the search option for a column in an old report

    Hi ,
    I created the report. It works fine. I remember while creating the report, at one step, I was asked to sort, search column level (check option) . I skipped that option at that time. But now I want to check/ enable them . So, how and where to do that ?
    Thanks.

    Hi,
    I think easiest way is re-create your report , so wizard do things for you.
    Other vise you need create "search bar" region and items manually and edit report where clause.
    You can first set your old report condition to never and create new report with same select.
    When you are sure that new report working ok, you delete old report.
    Br, Jari

  • How to implement a search functinality for lists in sharepint 2013 programatically

    Hi Team,
    I have a requirement like,
    Need to implement a custom webpart to search the results from lists in sharepoint 2013 programatically.
    Regards,
    Dhayanand

    Hi,
    According to your post, my understanding is that you want to implement a custom list search in SharePoint.
    In SharePoint 2013, there is an out of the box list search “Find an item” search box, you can use it to search items in a list.
    We can also use the JavaScript to achieve it, there is a simple code deme about this, you can refer to it.
    https://social.technet.microsoft.com/Forums/office/en-US/2529ba3e-9cd6-4f83-9258-435fedfc1e96/sharepoint-list-search-in-moss-2007?forum=sharepointsearchlegacy
    What’s more, there is a third-party software to achieve the same scenario.
    http://store.bamboosolutions.com/sharepoint-list-search-web-part.aspx
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Trying to figure out how to implement the scroll wheel for scrubbing through the final swf animation.

    I have an animation I have created and would like to allow the user to scroll up and down (for forwards and backwards) to control which direction the animation plays and at what rate. I'd also like to have the the animation do nothing if the scroll wheel isn't being manipulated. Here's the code I have so far, but I keep getting errors:
    import flash.events.MouseEvent;
    function handleMouseWheel(event:MouseEvent):void {
      trace("The delta value is: " + event.delta);
      frame = (clip_mc._currentframe + delta);
         clip_mc.gotoAndStop(frame);
    addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheel);
    Appreciate your help!
    I'm pretty new to this and I'm not sure what I'm doing wrong.
    Thanks

    Completely forgot to include my errors. After updating the code:
    import flash.events.MouseEvent;
    function handleMouseWheel(event:MouseEvent):void {
      trace("The delta value is: " + event.delta);
      frame = (clip_mc.currentFrame + event.delta);
         clip_mc.gotoAndStop(frame);
    addEventListener(MouseEvent.handleMouseWheel,mouseWheel);
    And the errors I'm getting: (with my animation playing from beginning to end)
    Scene 1, Layer 'Actions', Frame 1, Line 6, Column 2
    1120: Access of undefined property frame.
    Scene 1, Layer 'Actions', Frame 1, Line 6, Column 11
    1120: Access of undefined property clip_mc.
    Scene 1, Layer 'Actions', Frame 1, Line 7, Column 6
    1120: Access of undefined property clip_mc.
    Scene 1, Layer 'Actions', Frame 1, Line 7, Column 26
    1120: Access of undefined property frame.
    Scene 1, Layer 'Actions', Frame 1, Line 12, Column 29
    1119: Access of possibly undefined property handleMouseWheel through a reference with static type Class.
    Scene 1, Layer 'Actions', Frame 1, Line 12, Column 46
    1120: Access of undefined property mouseWheel.
    Apologies for my ignorance. I've been getting into ActionScript and still don't know much at all as I've only touched on programming in the past.
    I really appreciate your help.
    Thanks again!

  • Don't know how to calcualte the current page in smartform for second layout

    Hi All ,
       Iam creating an smart form which contains two layout in a single form. I need the page number to be displayed as followes.
    1st layout : 1 of 2
                     2 of 2.
    in 2nd layout 1 of 2.
                        2 0f 2.
    I dont have any issues in printing total number of pages. i dont know how to calculate the current page for the 2nd layout. <<text removed>>
    Edited by: Matt on Jun 25, 2009 5:09 PM - Removed ALL CAPITALS from subject

    Hi,
    Create a New window of Type 'Final Window' and Position it in the layout where u want to display the page numbers.
    Now, create a text element in the window and create the text like below in the text element.
    P1 Page &SFSY-PAGE& of  &SFSY-FORMPAGES(3CZ)&
    &SFSY-PAGE&                            - Current Page No.
    &SFSY-FORMPAGES(3CZ)&         - Total No of Pages.
    Note: dont forget to create the window type as 'Final Window', otherwise it will show ssome junk...
    Hope it helps!!
    Rgds,
    Pavan

Maybe you are looking for