Set external lov dynamically

Dear OAF pioneers,
I have the following :
1. LOVAM (AM)
2. 2 external lov LOV1 & LOV2 in LOVAM
VO1 for LOV1
select meaning, lookup_code
from fnd_lookup_values
where lookup_type = 'XXHR_MISSION_TYPES'
VO2 for LOV2
select meaning , lookup_code , substr(lookup_code, 1, 2) type_code_map
from fnd_lookup_values
where lookup_type = 'XXHR_MISSION_CLASSIFICATIONS'
The column 'type_code_map' in VO2 is equivalent to 'lookup_code' in VO1
3. Custom Page with different TRAVELAM
4. Calling the LOV from point no# 2
I need to set the where cluase of LOV2 depending on the LOV1 Value , So when ever the user select from LOV1 a value, the value of LOV2 should be filtered accordingly.
Please help.
Regards...ShoooSh

So if I understand the sequencing...
You click button that sets the value of PROVINCE and CITY.
So the city value is set but it's a cascading lov based on the province..which will change the city value, because it's essentially being re-generated. If the city values in the list are correct (based on the province) then you need to set the value of the city AFTER it has been refreshed.
You'd need to set the item again after the callback has finished.

Similar Messages

  • Unable to get AM object of an External LOV Region in CO of the Main Page.

    Hi ,
    I have a requirment to add dynamic where clause to a LOV VO.
    LOV field details:
    =======
    External LOV region is attached to the field.
    No Controller
    External Region Lov region has one AM attached.
    The LOV AM is not extended in the Main Page AM.
    Can anyone please suggest how to access the LOV AM in the Main page Controller...so that I can access the VO attached to the AM and set the where clause as required.
    Below are the solutions i have tried to implement. But was unsuccessful
    1. LovAMImpl XxLovAM = (LovAMImpl )pageContext.getRootApplicationModule().findApplicationModule("LovAM");
    2. Extended the Main Page AM (root application module) and extended the LovAM .
    3.OAWebBean regionbean = webBean.findChildRecursive("LovRN");
    LovAMImpl xxLovAM = (LovAMImpl)pageContext.getApplicationModule(regionbean);
    In all the above mentioned solutions, Lov AM object was null.
    It will be a great help if anyone can suggest any solution for the same.
    Thanks and Regards,
    Raja

    Hi Raja,
    Try this code. Recently i had the same requirement. I was able to achieve it through this piece of code.
    OAApplicationModule oam =
    (OAApplicationModule)am.findApplicationModule("XxVacancyLovsAM");
    if (oam != null) {
    } else {
    oam =
    (OAApplicationModule)am.createApplicationModule("XxVacancyLovsAM",
    "oracle.apps.irc.lov.server.VacancyLovsAM");
    OAViewObject IrcVacancyOrganizationLovVO =
    (OAViewObject)oam.findViewObject("IrcVacancyOrganizationLovVO");
    if (IrcVacancyOrganizationLovVO != null) {           
    IrcVacancyOrganizationLovVO.setWhereClause();
    Write this before Super in Process request.
    Regards,
    Pradeep

  • Need help with OA Framework. Enable/Disable LOV dynamically

    Hello,
    I am new to OA Framework. My requirement is as follows;
    The page should have a field with parameter org code (LOV). When the user selects an org and click GO button, the page should display all the inactive items (which have no Sales order or work order for last 2 years). In the table region, user selects single record or multiple records by a check box. The selected records should be processed after clicking a submit button in the table region. The process is, calling an API to change the status of the item to Inactive or some other status. The status should be determined by the user by selecting a LOV within the table region. I could create LOV based field for org code and could display the data on the page. I have been trying to display the LOV for item status , I have created a LOV under table region under table components > table actions. I could open the LOV and select a value, but the value is not defaulting to the field on the page. Somebody please help me with a suggestion or if you have the code for a similar kind of requirement please share with me.
    Also, need some suggestion on how to enable and disable LOV dynamically. I want to display the 2 LOV's in different regions. I want to enable the LOV for Item Status only after the org code is selected and the page populated after the user clicks GO button.
    Thanks in Advance…..

    Hi,
    I could open the LOV and select a value, but the value is not defaulting to the field on the page.pls check the LOV mapping ,this might be wrong.
    to enable/Disable LOV dynamically ,u need to use PPR,please check the lab solution exercise create employee chapter to learn to implement PPR functionality.
    Thanks
    Pratap

  • How to set the LOV value programmatically?

    Hello,
    I have a LOV (select list with submit) the value (displayed and corresponding returned) of which I would like to set by selecting a row in a report.
    What is the event I use to catch the selection of the row in the report and what would be the sample code to set the LOV values?
    Thanks a lot!
    Gabor

    Perhaps a more detailed explanation of the issue helps:
    I am developing an online internet bookmarking application. It basically contains a folder tree and bookmarks within the folders.
    The folder tree is implemented by a table referencing itself (main columns are: ID, NAME, PARENT_ID).
    The LOV lists the NAMEs (actually, the full path of each folder as returned by a function) and returns the IDs.
    When the user selects a NAME, folders and bookmarks contained in that folder are listed in a report (non-recursively).
    The action of the user clicking a folder in the report should simulate the above as if they selected the name manually. This is where I need help!
    I hope this helps. Thanks!
    Gabor

  • Set Queue name dynamically in MQ adapter

    Hi,
    Kindly suggest, how to set Queue name dynamically in Mq adapter.

    Hi Ajay,
    Thanks for your response.
    Below mentioned property value works fine for JMS adapter.
    Am looking for the property name of MQ adapter.
    Tried to set the queue name to the property jca.mq.ISpec.EnqueueMsgToQ and failed.
    Could you please provide the property name for MQ adapter

  • Steps to create LOV dynamically

    Hello All,
    I want to create LOV dynamically.in my Oracle Forms 6I
    Is there any code which can create LOV dynamically using coding.
    I can create Record group dynamically. but I want to create LOV dynamically not from object browser of Form Builder by pressing Add LOV option.
    Kindly help me.
    Thanks
    HARSH SHAH

    Forms does not have a Built-in for dynamically creating an LOV; these objects can only be created in the Forms Builder during design time.  You can, as numerous people have tried to demonstrate, change the Record Group an LOV uses dynamically.  Unless you are changing the Column Mapping Properties of the LOV, using different Record Groups to supply the data for an LOV should work for you.  If you need to change the Column Mapping Properties, then you will need to create multiple LOV objects with the different mapping you need and then assign the LOV to your Item dynamically.
    Hope this helps,
    Craig...

  • Adapter Modules: Set parameter values dynamic?

    Hi everybody,
    is it possible to set parameter values in adapter modules dynamic?
    Thanks Regards
    Mario

    Hi all,
    thanks for your replies.
    My problem is not solved.
    To make it clear,
    I want to set an attachmentName in Mail receiver adapter WITHOUT using the MailPackage.
    This is possible:
    ModuleName:        localejbs/AF_Modules/MessageTransformBean
    ModuleType:        LocalEnterpriseBean
    ModuleKey:        CHAN
    Parametername:        Transform.ContentDisposition
    ParameterValue:        attachment; filename="NameOfAttachment.txt"
    I want to set "NameOfAttachment.txt" dynamically. How can I achieve this? Thanks, regards
    Mario

  • Set Database path dynamically

    Post Author: santoshk
    CA Forum: Data Connectivity and SQL
    Hi All,
    I am using asp dot net 2.0 With craystalreport and C#.
    While crating report i am giving server,databsename and all the credentials as per my computer. My crystal reports work fine.
    But problem occurs when i try to run the crystalreport other than my machine. It always ask for databse password,server name.
    Is it possible to set database path dynamically for sql server.
    Please help me.
    If anybody give me the detail procedure in c# ,it will be appriciated.
    Waiting for reply.
    thanks in advance

    Post Author: DLO34
    CA Forum: Data Connectivity and SQL
    I recently came across this issue. I was able to get a
    Crystal Report to work dynamically under limited conditions. If you create a
    direct connect report for an Oracle database then, it will only connect to
    other Oracle databases. The same is true for MSSQL and Sybase. When using the
    CRPE or RDC API you must set the logon credentials for the report as a whole
    and for each object within the report. Below is a snippet of my code C++ using
    the RDC API. This should help get you going.
    IReportPtr pReport;
    IDatabaseTablesPtr pTables
    IDatabaseTablePtr  pTable
    Int num_tables, i;
    // set for whole report
    pReport->Database->LogOnServer(DB_DLL, DB_Server_Name, DB_Name,
    DB_User_Name, DB_Password);
    pTables    = pReport->Database->GetTables();
    num_tables = pReport->Database->Tables->Count;
    for (i = 1; i <= num_tables; i++)
        pTable = pTables->GetItem(i);
        pTable->SetLogOnInfo(DB_DLL, DB_Server_Name, DB_Name,
    DB_User_Name, DB_Password);   // set for each object

  • AutoScrolling of PanelLayout and setting Location of dynamically created controls

    Hi, I have a question related to setting Location of dynamically created controls when my PanelLayout is scrolled down or up.
    So basically I have wrote a code that lets me drag on control over other other and replace their's locations.
    So I wanted to add possibility for user to dynamically add new controls (every new control is suppose to be 200px below previous) - everything is fine as long as I add them from upper section of my LayoutPanel (without scrolling) but when I try to add
    them while I'm half dawn scrolled they are placed based on CURRENT left upper corner which is NOT a upper left corner of LayoutPanel therfore they are placed with wrong padding based on current scrolled position.
    So my question is how can I avoid it and always add new controls based on LayoutPanel upper left corner? (I have already tried disabling AutoScroll while adding new control and enabling it back after adding - it works but I want to find PROPER way because
    I'm sure there must be some kind of solution to it)
    Thanks in advance.

    Hi darekg11,
    >> I have a question related to setting Location of dynamically created controls when my PanelLayout is scrolled down or up
    I am wondering what the PanelLayout was, was it a “flowLayoutPanel” or “tableLayoutPanel”?
    >> basically I have wrote a code that lets me drag on control over other other and replace their's locations
    Did you mean you drag the control at runtime or at design time?
    >> how can I avoid it and always add new controls based on LayoutPanel upper left corner
    I could not reproduce your issue, and could you share us some key code or a simple demo to reproduce your issue?
    I made a research about “scrolling panel”, and I think the link below might be useful to you:
    # Scrolling Panel
    http://www.codeproject.com/Articles/226381/Scrolling-Panel
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Can i create External Table dynamically

    Hi,
    Is it possible to create External Table dynamically ?
    I want to use the following dynamically to create External Table.
    1) fields
    2) field position
    3) file location
    Thanks

    The answer shouldn't be very different of already given answers in your Can i create external table dynamically? of the last month, is it ?
    And question is still same : why wanted such thing ?
    Nicolas.

  • System time was set externally in the past.

    Hi Gurus,
    In our production system,several warning messages have come up System time was set externally in the past. Wait 1 second(s).
    But when i checked the system time it showing the same as OS's.
    Could you please throw some information around this and how these warnings can be avoided?
    Thanks
    Sabya
    BASIS ENTHUSIAST

    Hi Sabyasachi,
    What's your OS Version?
    Is your SAP application hosted on Windows Server.
    Please check-out SAP Note-447839.
    Also to brief you about this common issue where in sometimes the OS time is reset back in the past and the SAP application observes this an warning and in severe situations as an ABAP dump.
    On windows server, if the automatic synchronization of timezone is enabled it synchronizes to a master time server. Actually this should be fine, but in case of Windows server, what happens is that every time the synchronization happens from a master time server, the SAP server gets a hard reset i.e. Sudden decrease of time at the time of synchronization like from 11:45 AM to 10:45 AM. This kind of behavior affects the applications running on the server. This should have been soft reset i.e. 11:45 AM time should go back in time in fractions over the entire week (Soft Reset) until it is synced in real time. SAP applications running on windows server implemented with Hard reset of Time are absolutely not supported and in that case the hard reset must be refrained at all costs. Refer SAP Note 447839 for further details.
    To narrow down the root cause of OS time shifts you can run a watchdog tool SAP time trace tool which logs the OS time every 5secs, so the next time whenever this occurs in the system it can be investigated what happened to the OS time at that instance.
    If the described case matches with your scenario, you can disable the Automatic time synchronization feature on the windows server.
    Regards,
    Akshay

  • External LOV Problem

    Dear Users,
    I have defined an external lov and attached this lov to a field on the page.
    While creating the external lov I 've tested the query on the database and it was returning rows. I tested the query in JDev as well while creating the external lov and it passed the test.
    When I have run the page and when I am trying to select the value from the LOV it is returning zero rows. Message is no rows to display.
    But when I am executing the query in back end is returning rows.
    How to debug this problem.
    Kindly please help me to resolve the above issue.
    Many thanks in advance.
    Best Regards,
    Arun Reddy D.

    Hello Anand,
    Thanks again for your reply.
    What is the change you have done ?
    Previously my query was extracting assets from Book A1. I just changed the value to Book B1.
    Make sure attribute mappings are correct of the LOV VO.
    I cross checked the attribute mappings again and all are correct.
    Make sure that there are no bind variables in the LOV VO. Otherwise you need to execute the VO programatically.
    There are no bind variables in the query. It is a simple SQL Query
    Query is as follows:
    select a.ASSET_ID,
    a.ASSET_NUMBER,
    a.DESCRIPTION,
    b.cost,
    l.location_id,
    l.segment1,
    l.segment2,
    l.segment3,
    l.segment4
    from fa_additions_v          a,
    fa_books                b,
    fa_asset_keywords       k,
    fa_distribution_history d,
    fa_locations            l
    where b.asset_id = a.ASSET_ID
    and b.date_ineffective is null
    and b.book_type_code = 'B1'
    and k.code_combination_id = a.ASSET_KEY_CCID
    and d.asset_id = a.ASSET_ID
    and d.date_ineffective is null
    and l.location_id = d.location_id
    When you open the LOV window and search for some data, are you not getting any data ?
    Yes you are right. When I am searching the LOV there is no data.
    Create a LOV CO and in the processFormRequest of this CO, get the query using vo.getQuery() and check.
    I did this and it returned the same query which I have given above. when I am executing this query in back end it is giving data.
    Kindly please help me in resolving this issue.
    Many thanks in advance.
    Best Regards,
    Arun Reddy D.

  • Multilanguage - set chart title dynamically

    Hello members!
    I am developing a product which should support multilanguage support. This includes the crystal reports.
    After reading different threads on this topic, I got the idea to set the text dynamically. To achieve this solution, I need to read all texts that could be set via the code. For the TextObject and FieldHeadingObject, I got the following code to add the current text to a ResXResourceWriter:
    ReportDocument report = new ReportDocument();
    ResXResourceWriter resXWriter = New ResXResourceWriter(pathToResourceFile);
    foreach( ReportObject reportObject in report.ReportDefinition.ReportObjects)
       if(reportObject.Kind == ReportObjectKind.TextObject ||
          reportObject.Kind == ReportObjectKind.FieldHeadingObject)
           resXWriter.AddResource(reportObject.Name, ((TextObject)reportObject).Text);
    How can I read the text from the chart titles and legends? Has someone any idea?
    Thank you
    Alex

    Hello Ludek!
    With the help of the following thread
    .net TextObject with embedded Fields Question I got an idea how to achieve the first goal.
    I modified the code to read the different titles from the chart object and store the values in the resx file. The supplied resource value (GroupTitle, DataTitle, Subtitle, SeriesTitle and the Title) should be checked for null.
    public void GetTitlesFromChartObject(string reportFilePath, string resourceFilePath)
        ResXResourceWriter resXWriter = new ResXResourceWriter(resourceFilePath);
        CrystalDecisions.CrystalReports.Engine.ReportDocument myReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
        CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rasClientDocument;
        CrystalDecisions.ReportAppServer.Controllers.ReportObjectController rasObjectControler;
        CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject rasChartObject;
        //load the report
        myReportDocument.Load(reportFilePath);
        rasClientDocument = myReportDocument.ReportClientDocument;
        rasObjectControler = rasClientDocument.ReportDefController.ReportObjectController;
        foreach (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject rasReportObject
        in rasObjectControler.GetReportObjectsByKind(CrReportObjectKindEnum.crReportObjectKindChart))
            rasChartObject = (CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject)rasReportObject;
            resXWriter.AddResource(rasChartObject.Name.ToString() + ".Title", rasChartObject.ChartStyle.TextOptions.Title.ToString());
            resXWriter.AddResource(rasChartObject.Name.ToString() + ".GroupTitle", rasChartObject.ChartStyle.TextOptions.GroupTitle.ToString());
            resXWriter.AddResource(rasChartObject.Name.ToString() + ".DataTitle", rasChartObject.ChartStyle.TextOptions.DataTitle.ToString());
       resXWriter.Close();
    Thank you for your help
    Alex

  • Is it possible to set identity template dynamically?

    Hi,
    I want to create accounts on LDAP through activesync.
    I set identity template :[uid=$accountId$,ou=$category$,dc=....].
    But I don't want to set category attribute in schema map of resource.
    Is it possible to set $category$ attribute dynamically
    depends on the value of other attribute without defining schema map??
    thanks in advance.

    Hi,
    Absolutely possible, you could either create a field called global.category in your activeSync form or the way I'd do it which is to set the .identity field. In your activeSync form when you assign the LDAP resource to the user view you can a have a field called 'accounts[LDAP].identity' and then use an expansion event within this field to build your DN of the user account on LDAP.
    HTH,
    Paul

  • System time was set externally in the past. Wait 1 z second(s).

    Hi,
    We are getting the follwing message in our production environment.
    System time was set externally in the past. Wait 1 z second(s).
    The system time is same as SAP time
    Pls let me know of what has to checked to correct the issue
    Edited by: Balaji Rajendran on Jun 20, 2008 5:18 PM

    Hi,
    Time zone can be changed at SAP level and this reflects at database level.
    Have look at these transactions.. Check your logs and see wthhr someone changed the time zones.(sm20/st03(n)/stad)
    STZAC Maintain time zone act.in client
    STZAD Disp.time zone activate in client
    Also check note 198411
    Rakesh

Maybe you are looking for

  • SAP PI CSV to Proxy Structure

    Hi All, I have scenario wherein I will be getting data from external PI system to my PI system through XI adapter so at external PI end receiver adapter will be XI adapter and at my end sender adapter will be XI adapter. Now through XI adapter i will

  • XML - Oracle Aproach

    Hi, i've recently try to user the XML Component in Oracle Portal. I've done a few examples and i have a couple of questions. Can i create a portlet with XML & XSL. Where can i find documentation about XSL commands that Oracle Portal understands? Take

  • How to monitor messages on PI 7.3 AEX

    Hi Experts,                    We are going to use PI 7.3 with a Java only service (AEX) for our project. While going through the SAP documentation for 7.3, found the following link which mentiones in a Note : "When you use the Advanced Adapter Engin

  • How to send dynamic flv video to video control

    Hi i put a looper in my page and inside it i click insert->media->flash video and the window appeared and i try to make the flv dynamic i mean by code and i found that it needs to specify a specific flv file !!! no parameters button to specify dynami

  • HT201210 what in the **** is going on ? my update wipes my phone out ? not really helping.

    it says it all in the title