Lov related issue

hi
i am using oracle developer 6i.i designed a general ledgre form and what i m trying is to use a LOV,which has four records and when i open form LOV should appear and, what value i select it autometically show relate record and when i cancel then it show all record from database.even then i query or direct execute lov should appear so that user can select value from lov to view related record.
In this regard i created a lov and wrote a code but it is not working.i used also set_block_property('gl',default_where,' ')
any one know how can i perform this and which trigger should i use.
thnx in advance

If I have understood your problem you want to achieve is like this:
you show your lov; if a value has selected then you must do a query using this value; otherwise you must do a query for all the records.
So, if these conditions are ok you can try this:
You can put this code into a button
DECLARE
VALUE BOOLEAN;
BOTTONE NUMBER;
number_record number;
default_condition varchar2(2000) := null;
BEGIN
VALUE := SHOW_LOV('YOUR_LOV');
/** You have not selected a value **/
IF NOT VALUE THEN
default_condition := null;
set_block_property('your_block',default_where,default_condition);
go_block('your_block');
execute_query;
else
/** you have selected a value **/
/** your parameter represents value choosen from your lov **/
default_condition := 'your_field = '||your_parameter;
set_block_property('your_block',default_where,default_condition);
go_block('your_block');
execute_query;
end if;
END;
Hope it helps you,
Fabrizio
If this answer is helpful or correct, please mark it. Thanks.
Edited by: Fabrizio Delli Priscoli on 3-mar-2009 13.13

Similar Messages

  • LOV related issue in the create page

    Hi,
    I have created a search page and have made 3 lovs for 3 different search items.
    Everything works fine in the search page.
    Then I went ahead and created a Create Page and in this page, I am trying to reuse the LOVs that I made for the Search page.
    But whenever I click on the LOV in the Create Page , it takes me to the Search Page.
    I am not understanding the reason for this.
    I looked at all the AM Definitions and everything is properly set.
    Can anyone please let me know what might be the reason for this.
    Thanks

    Hi,
    I have this piece of code in the controller of the create page
    ===============================================================
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("Apply")!=null);
    OAViewObject vo = (OAViewObject)am.findViewObject("AccountsVO1");
    String setofbooksName = (String) vo.getCurrentRow().getAttribute("SetOfBooksName");
    String LookupType = (String) vo.getCurrentRow().getAttribute("LookupType");
    String LookupCode = (String) vo.getCurrentRow().getAttribute("LookupCode");
    String Description = (String) vo.getCurrentRow().getAttribute("Description");
    String OrclSegment1 = (String) vo.getCurrentRow().getAttribute("OrclSegment1");
    String OrclSegment2 = (String) vo.getCurrentRow().getAttribute("OrclSegment2");
    String OrclSegment3 = (String) vo.getCurrentRow().getAttribute("OrclSegment3");
    String OrclSegment4 = (String) vo.getCurrentRow().getAttribute("OrclSegment4");
    String OrclSegment5 = (String) vo.getCurrentRow().getAttribute("OrclSegment5");
    String OrclSegment6 = (String) vo.getCurrentRow().getAttribute("OrclSegment6");
    String OrclSegment7 = (String) vo.getCurrentRow().getAttribute("OrclSegment7");
    String LgcySegment1 = (String) vo.getCurrentRow().getAttribute("LgcySegment1");
    String LgcySegment2 = (String) vo.getCurrentRow().getAttribute("LgcySegment2");
    String LgcySegment3 = (String) vo.getCurrentRow().getAttribute("LgcySegment3");
    String LgcySegment4 = (String) vo.getCurrentRow().getAttribute("LgcySegment4");
    String LgcySegment5 = (String) vo.getCurrentRow().getAttribute("LgcySegment5");
    String LgcySegment6 = (String) vo.getCurrentRow().getAttribute("LgcySegment6");
    String LgcySegment7 = (String) vo.getCurrentRow().getAttribute("LgcySegment7");
    String EnableFlag = (String) vo.getCurrentRow().getAttribute("EnableFlag");
    Date StartDateActive = (Date) vo.getCurrentRow().getAttribute("StartDateActive");
    Date EndDateActive = (Date) vo.getCurrentRow().getAttribute("EndDateActive");
    am.invokeMethod("apply");
    MessageToken[] tokens = { new MessageToken("LOOKUP_TYPE",LookupType),
    new MessageToken("LOOKUP_CODE",LookupCode)};
    OAException confirmMessage = new OAException ("XMCI","XMCI_RS_TEST_MSG",
    tokens,OAException.CONFIRMATION,null);
    pageContext.putDialogMessage(confirmMessage);
    pageContext.forwardImmediately("OA.jsp?page=/oracle/apps/ap/accounts/webui/AccountsSearchPG",
    null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    ======================================================================
    am.invokeMethod("apply");
    MessageToken[] tokens = { new MessageToken("LOOKUP_TYPE",LookupType),
    new MessageToken("LOOKUP_CODE",LookupCode)};
    OAException confirmMessage = new OAException ("XMCI","XMCI_RS_TEST_MSG",
    tokens,OAException.CONFIRMATION,null);
    pageContext.putDialogMessage(confirmMessage);
    pageContext.forwardImmediately("OA.jsp?page=/oracle/apps/ap/accounts/webui/AccountsSearchPG",
    null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    this piece of code gets fired whenever i select on the LOV item on the create page.
    so it takes me to the search page on the click of the LOV button
    Could anyone let me know how can I avoid this as I want the whole code to fire only when the user clicks on the APPLY button
    Thanks

  • Can we set up a forum for Security related issues?

    I know many of us think security is a Windows related issue, but from time to time there are security issues that may come up. I had a question so I looked and couldn't find a forum, so I posted in one of the OS X 10.6 sub forums.
    Thanks!

    I am a co-founder of Calendar of Updates http://www.calendarofupdates.com/updates/index.php?act=idx This is a site that is primarily a Windows based security forum (I switched about 4-5 years ago). Over the years, I've tried to grow the Mac side of our forum, but, as you may know, there is little or no interest in security within the Mac community. For many, the feel security is a Windows issue.
    It's a free site, so don't think I have a vested interest in growing the membership, I'm not an owner, either.
    I just created an *Apple OS X Security Issues* forum http://www.calendarofupdates.com/updates/index.php?showforum=209
    Right now it's an empty forum since it was created 10 minutes ago. Please feel free to join the forum and share security related issues and questions.
    I am not aware of any other forums that deal with OS X security issues
    exclusively, so this forum could be a good place to bookmark and visit from time to time.

  • To everyone with IOS6 Sound related issues & Others

    If you are facing a problem of not having any system sounds, notification sounds, no calls or other software sound related issues I'd suggest you read below it's a stupidly simple fix and it should solve most software issues after an immediate iOS6 update:
    After updating unplug the phone from your computer and leave the phone alone for 5-10 minutes, if you still have problems: reboot, wait a few minutes and all sound related problems should be fixed.
    When I updated to iOS 6 I had lost my system sounds, so I unplugged from the computer, rebooted the phone and still no go. I decided to just let the system "settle in" for a bit, let it lock and when I unlocked after 5-10 minutes sounds were back and everythings up and running again.

    Well, to break it down. After my sounds finally came back (2nd time losing them) last night I decided to restore the phone in itunes. I did it twice. First time I backed up my data. Second time I restored it as a factory iPhone. Both times guess what NO SOUNDS! I also realized that last night I had lost my sounds after charging my phone and unplugging it from the data cord. I still have ringtones (when someone calls), but text messages, emails, and any other alert tones do not work. I cannot turn the volume up or down with the side buttons and also music does not play. It doesn't even have a slide bar at the bottom.
    I am on the phone with apple care now. They seem to not be aware of the problem at all.
    While I was on the phone with them my sounds ended up coming back, imagine that. Hopefully every time I charge my phone I am not going to have this issue.

  • Many Sporadic Preview Related Issues

    Not sure if this is where to post/report Lightroom 5 issues or not, but here are preview-related issues I am experiencing...
    Preview panel "preview" freezes indefinitely.
    App very slow to load while creating new previews. (previews take forever to create and update)
    Wrong previews showing for wrong images when swapping between folders, etc. (ie: all photos, last import, custom collections)
    This one is a little different...
    Ratings lost when switching between folders, etc. (ie: all photos, last import, custom collections)
    This was a clean install that ran beautifully at first. Started noticing this more and more after using the spot tool. (my last step in processing a job)
    I use separate catalogs per job. Some as small as a few dozen images. (family stuff) Others, as large as 500-600. (engagement and wedding clients)
    Hope you are working on this. It's making work a struggle. I'm not just a "consumer". ;-)

    This is a user to user forum so the responces you recieve here will mostly be from users like your self. I am sure someone will respond on how to help dealing with the problem you are experiencing.
    The official forum for reporting bugs and making feature requests is at the web link below.
    http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop_lightro om

  • Unicode related issue in 4.6c to ECC 6.0 upgrade

    Hi
    I am doing upgrade from 4.6c to ECC 6.
    Here I am getting one unicode related issue.
    "The data object A948 does not have a component called ZZMATWA.".
    This type of issues , how can I resolve.
    I am very new to upgrade, Plese do help me.
    Regards
    Sandeep Reddy.

    Hi,
    Can you give the error what you are coming across.
    Regards,
    Suhas

  • How to add data in related issue field in issue tracking list sharepoint 2013

    Hi,
    I'm using out of box Issue Tracking List. In Related Issue I want to add some data like :- Business, Technical, HR, Contractor etc in right side so user can select one of them add it. Not sure how to add these data in Related Issue column. Please advice.

    Related Issues is a lookup column to the same list which is Issue Tracking List. so you can add new items where title is Business, Technical, HR, Contractor etc then you will get those under related issues.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • In PP Interface related issues the role of functional consultant

    In PP Interface related issues what is the role of functional consultant .  what is the approach steps to analyse and resolve the issues  in XI, interface, idoc, etc.,

    For issues relating to interfaces, a functional person would need to diagnose what is causing the issue & thereby informing the technical person where to fix it, if the issue is due to system setup.
    As regards to the steps, I just wish there was a manual which read something like
    10 steps on how to analyze....
    unfortunately there is none that I have come across or even if one is ever written on those lines will be very specific, so not much of use for your need. A good approach would be to have a clear understanding of what the interface is supposed to do, which would assist you in fixing the issues.

  • How to Handle BARCODE related issues in WebDynpro ABAP

    Hi All,
    How to handle barcode related issues in WDA?
    is it possible in WDA or not?
    please provide information or any links related..
    Thanks,
    raj.

    Hi ,
    You just need to install the software comes with the barcode scanner in the local PC and while reading you have to put the cursor on the field like inputfield . a barcode when interpreted by scanner is nothing but alphanumeric words.
    Regards
    Yash

  • Performane related issue in Production Server

    Hi,
    when i deploy the whole application in development server (by remotely logging into client server through vpn) it works fine .
    But when it is run at client side for system testing, user acceptance testing and
    integration testing it becomes very slow .
    Due to this performance related issue , we are not able to transfer the DCs to production server .
    We are sure it is not coming from R3 side (BAPIs etc) . It is coming either from the Webdynpro or Portal side .
    Can anybody help out regarding how to solve this issue .
    Thanks .

    Hi Narendra,
    Please elaborate what is QAS customization and production  customization.
    TR has been done properly.
    Let me give you an overview of the project.
    In Organisational Assignment a Zprogram has been written which captures additional information like Grade Code, Designation Code & Pay Sheet Code
    Its a govt. client. Combination of Grade Code & Designation Code is Pay Scale Grouping
    e.g if Grade Code is A01 & Designation Code is A005
    Pay Scale Grouping is A01-A005
    If we put the values in 0001(Org Assignment) for Grade Code(A01) & Designation Code(A005), A01-A005 comes automatically in Pay Scale Grouping for a particular Pay Scale Structure.
    But now the problem is Pay Scale Type doesn't come get defaulted in 0008 for a Personnel Area & Personnel Subarea.
    I have maintained PST in Tariff & Check Assignment of Pay Scale Structure in Enterprise Structure.
    But in 0008, We have to put PST manually. Since client is having only 1 Pay Scale Area for all Personnel Area & Personnel Subarea, so we don't have to bother for it
    Please tell me where can be the error
    Regards,
    Usha

  • System relate issue

    Hi friends,
    im in guess of where to post system related issue, since this is my problem
    run --> drivers --> host file,
    i couldnt able to edit & save host file.
    Tried below steps:
    1. host --> properties --> Security --> add --> everyone --> given full control also.
    2. Not able to do that in administrator account alsoWhich is the right place to post this question.
    Regards,
    Saro
    Edited by: Saro on May 17, 2011 12:48 PM

    Hi,
    Probably in your OS provider support forum?
    Regards,
    Jari

  • Oracle DBA related issues ?????

    where can i discuss DBA related issues?
    thanks

    The standard tasks necessary for the SAP system are supposed to be done via the brtools which can be triggered from within the SAP system if needed.
    The reason for this is that SAP does not use all of Oracle's functionalities (some may be even harming the SAP system). Therefore SAP recommends to administer the db only via the brtools to allow a safe administration taking into account the special requirements of the SAP system.
    If you need to know more about the functionality of the brtools I suggest you use help.sap.com or use the SDN information given.
    Kind regards,

  • Security related issues

    Hi everybody,
    We know that weblogic stores all its configuration
    parameters in an xml file,including the userid and password for the database
    in clear text form .
    I want to know whether it is a security flaw?
    Is there a way to encrypt the file contents,so that the userid and password
    will not be in clear text form.
    Any suggestions to increase the security on the config file by appliying os
    restriction or by any third party tool will be helpful.
    Thanks in advance
    prashant

    I am a co-founder of Calendar of Updates http://www.calendarofupdates.com/updates/index.php?act=idx This is a site that is primarily a Windows based security forum (I switched about 4-5 years ago). Over the years, I've tried to grow the Mac side of our forum, but, as you may know, there is little or no interest in security within the Mac community. For many, the feel security is a Windows issue.
    It's a free site, so don't think I have a vested interest in growing the membership, I'm not an owner, either.
    I just created an *Apple OS X Security Issues* forum http://www.calendarofupdates.com/updates/index.php?showforum=209
    Right now it's an empty forum since it was created 10 minutes ago. Please feel free to join the forum and share security related issues and questions.
    I am not aware of any other forums that deal with OS X security issues
    exclusively, so this forum could be a good place to bookmark and visit from time to time.

  • Credit management related issue - please respond ASAP

    Hi,
    I have a credit management related issue,
    The requirement is as below:-
    If receivables value is zero for a customer and after a sales order is saved and delivery is created, a check should happen to see if the GROSS (Total including VAT) , not Net, value exceeds the credit limit  for that customer and the delivery doc should be blocked and then del doc will be released by the credit reps using VKM5.
    My client wants the orders to accepted always and delivery notes created but the delivery notes should be  blocked from further processing.  They are then released by the credit reps using VKM5.
    If receivables value is more than zero,then system response is OK.
    I understand that Customer's credit limit is the amount entered whichrepresents an upper limit for the total receivables and the foreseeable receivables from the customer.
    If the  Receivables value is zero, system will not check the credit limt value at all.
    Thanks,
    Rohit
    Edited by: rohit rathi on Apr 8, 2010 11:16 AM-updated
    Edited by: rohit rathi on Apr 8, 2010 11:18 AM

    Hi Rohit,
    1.If you don't want to perform check on sales order stage, then you could leave the credit check as blank for the sales order type.
    2.Please leave the field "credit active" as X for the sales order item category. Then even the check itself is not performed, the credit value is updated when saving the order.
    3.The credit price is copied from sales order to delivery document. If you would like to configure which value(Total including VAT) should be taken as the credit price, the configuration is done in V/08. Define the line as subtotal=A. Then the amount is taken as credit price.
    4.You could create your own routine and assign it to OVA8 no check if you want the credit check not being performed when Receivables value is zero. However from my point of view, it doesn't make so much sense to do that. For example, one big order could expeire the credit limit and make the receivalables with a big amount.
    Best regards,
    Smile

  • In which forum can i post direct 2d related issues?

    In which forum can i post direct 2d related issues?

    Probably over here.
    http://xboxforums.create.msdn.com/forums/default.aspx?GroupID=7
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Maybe you are looking for