Dynamically changing LOV whenever another item changes

I have two items on a page that are implemented as select lists based on LOVs, product and product category. The query for the product category lov references the product item. However, changes made to the product item are not reflected in the list of values for the product category item. As I understand, javascript is needed to make the LOV for product category dynamically change whenever the product item changes. Can somebody point me to documentation which details how to do this. Thanks for your help.

See this and some other examples on that topic:
http://apex.oracle.com/pls/otn/f?p=31517:119
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • Change item Label based on Another item's value

    Hi guys,
    I need to set an item label (A) based on the value of another item (B). I did the following:
    I Created a dynamic action.
    When B changes:
    1- submit the value of B
    2- Refresh item A
    The label of the item A is : myitem &B.
    Any ideas ????
    Best Regards,
    Fateh

    Fateh wrote:
    Ok... Thanks a lot... but before closing the thread and for better understanding.
    I put this code on Execute when Page Loads:
    $("#P1_A").change(function(){
    if($v(this)=="Rent"){
    $('#mylabel > label > span').text('Is it for Sale also');
    }else{
    $('#mylabel > label > span').text('Is it for Rent also');
    }However, the label does not change. Any ideas why this is not working????
    Regards,
    Fateh
    $v(this)
    you are mixing jquery and apex API, it won't work
    and missing *});* at the end, and when adding to the page load you should wrap them in $(document).ready( code here.... });
    $(document).ready(function () {
         $("#P1_A").change(function () {
              if ($(this).val() == "Rent") {
                   $('#mylabel > label > span').text('Is it for Sale also');
              } else {
                   $('#mylabel > label > span').text('Is it for Rent also');
    });

  • Dynamic changing the LOV

    Hi
    we are facing some problem in Dynamic Changing the LOV.
    Lets assume the below scenario.
    I have tables like location and department table.
    In location table i have values like country name and location. For one country there will be multiple locations.
    First i need to show the unique country names in LOV. based on the country selection i need to show locations.
    all we need to achieve in same page meaning i have two lovs in one page. first one is country and second one is locations.
    pls. help us to resolve this issue.

    Why wouldn't you put two items (visible=no) on page; first of them with "select distinct..." of country on record group for LOV1 and the second with LOV2 with locations, depending of values in item1 where you took value from LOV1?

  • Best Practice: Dynamically changing Item-Level permissions?

    Hi all,
    Can you share your opinion on the best practice for Dynamically changing item permissions?
    For example, given this scenario:
    Item Creator can create an initial item.
    After item creator creates, the item becomes read-only for him. Other users can create, but they can only see their own entries (Created by).
    At any point in time, other users can be given Read access (or any other access) by an Administrator to a specific item.
    The item is then given edit permission to a Reviewer and Approver. Reviewers can only edit, and Approvers can only approve.
    After the item has been reviewed, the item becomes read-only to everyone.
    I read that there is only a specific number of unique permissions for a List / Library before performance issues start to set in. Given the requirements above, it looks like item-level permission is unavoidable.
    Do you have certain ideas how best to go with this?
    Thank you!

    Hi,
    According to your post, my understanding is that you wanted to change item level permission.
    There is no out of the box way to accomplish this with SharePoint.               
    You can create a custom permission level using Visual Studio to allow users to add & view items, but not edit permission.   
    Then create a group with the custom permission level. The users in this group would have the permission of create & add permission, but they could no edit the item.
    In the CodePlex, there is a custom workflow activities, but by default it only have four permission level:
    Full Control , Design ,Contribute and Read.
    You should also customize some permission levels for your scenario. 
    What’s more, when use the SharePoint 2013 designer, you should only use the 2010 platform to create the workflow using this activities,
    https://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Sharepoint Workflow to change another item in the same library

    Is it possible to change another item in the current library using a sharepoint workflow
    I currently has a customised approval workflow that approves procedures. I would like this workflow to set the status of the previous version to archive when the current procedure is approved.
    Jack

    Hi Jack,
    If the documents in your library are all word files and the names of the documents are named as"A001_Rev_+number", you take follow the steps below to update the status column.
    Create a 2013 workflow associated with the library, and start the workflow when an item is created.
    Select Start a task process.
    Select If any value equals value and set it to be: If Variable: Outcome equals Approved.
    Select Extract Substring of String from Index with Length, and set it to be:Copy from Current Item:Name, starting at 0 for 9 characters(Output to Variable: substring).
    Select Set Workflow Variable and set it to be:Set Variable: string to Current Item:Name.
    Select Replace Substring in String and set it to be:Replace Variable: substring with (space) in Variable: string(Output to Variable: output).
    Select Do Calculation and set it to be:Calculate Variable: output to minus 1(Output to Variable: calc).
    Select Update List Item to update the status column(refer to the picture below).
    Select Go to a stage and set it to be:Go to End of Workflow.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Can you dynamically change an LOV on the parameter form based on other params?

    Can you dynamically change an LOV on the parameter form based on other parameters? For example, based on a entered purchase order number, create an LOV of the purchase order lines that belong to the entered PO #.

    Hi
    Accouding to my knoledge you can't do it.
    If you want to build lov for that particular
    value, you can do it in Forms.
    Vijay

  • How to dynamically changes items properties

    How to dynamically changes items properties likes position order in tabular view, width, prompt

    Many object properties can be set programmatically at runtime. For example, each window object has a Visible property that can be set to either Yes or No to show and hide the window. At runtime, you can call the built-in procedure SET_WINDOW_PROPERTY to show or hide the window dynamically, as shown here:
    Set_Window_Property('my_window',VISIBLE, PROPERTY_ON);
    The following built-in procedures are available for setting object properties at runtime:
    -     SET_BLOCK_PROPERTY
    -     SET_CANVAS_PROPERTY
    -     SET_FORM_PROPERTY
    -     SET_ITEM_PROPERTY
    -     SET_LOV_PROPERTY
    -     SET_MENU_ITEM_PROPERTY
    -     SET_PARAMETER_ATTR
    -     SET_RADIO_BUTTON_PROPERTY
    -     SET_RECORD_PROPERTY
    -     SET_RELATION_PROPERTY
    -     SET_VIEW_PROPERTY
    -     SET_WINDOW_PROPERTY
    The built-in procedure SET_ITEM_PROPERTY can be used to set the properties of any type of item, including buttons, text items, check boxes, radio groups, etc.
    Note: Radio group items include individual radio buttons; use SET_ITEM_PROPERTY to set the properties of the radio group, and SET_RADIO_BUTTON_PROPERTY to set the properties of the individual buttons in the group.
    Each built-in SET procedure has a corresponding GET function that allows you to programmatically determine the current setting of an object's properties. The following example uses GET_WINDOW_PROPERTY to determine if a window is currently hidden (VISIBLE = FALSE). If the window is hidden, SET_WINDOW_PROPERTY is called to show the window.
    If Get_Window_Property('my_window',VISIBLE) = 'FALSE' THEN
    Set_Window_Property('my_window',VISIBLE,PROPERTY_ON);
    To determine if a particular property can be set programmatically, refer to the property descriptions in online Help.

  • How to drag and drop item from list to another item in list and change their positions

    I have a list field with multiple items. I want to select one item from list and drag and drop to another item in the list
     after drop item on another item the position of items should be change. (Example:- if I select 1st item from list and drag and drop this item to 4th item in list after drop that item position of both item should be changed 1st item on 4th position and 4th item on 1st position)
    I don't know how to do this.Please help me to find the solution.

    Hello Zoltan,
    I do not believe that kind of option is built into the listboxes, but I was able to have similiar functionalities using property nodes. I have included an example program that I put together.
    The big difference is that instead of dragging, you double click on the item you want to transfer. To highlight items as you go down the list, all you need to do is set the value to that list number.
    Hope this helps you out!
    Attachments:
    Temp.vi ‏33 KB

  • Dynamically Changing Labels for Multi Row Block Buttons

    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    On my local: Windows 7 OS
    I am having a difficult time in doing the following in forms, and not sure if it can be done?
    I have a multi row block,based on DB table, which displays filename and another column from the table.
    It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
    a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
    b) View File (Display the file from file system)
    c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
    I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
    I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
    Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
    Any expert advice is highly appreciated.
    Thanks in advance for your time:
    Libran_Girl
    Edited by: libran on Aug 30, 2011 8:04 AM
    Edited by: libran on Aug 30, 2011 8:05 AM

    <p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
    Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
    </p>
    This is the code you have to put one triggers of your based block:
    When-New-Record-Instance trigger: (based on the EMP table)
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;When-Create-Record trigger:
    declare
         LN$N    pls_integer ;
         LN$Rec  pls_integer := :system.cursor_record ;
         LC$C    Varchar2(15) ;
    Begin     
         if get_block_property('EMP',TOP_RECORD) > 1 Then
              LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
         else
              LN$N := :system.cursor_record ;
         end if;
         If LN$N > 0 Then
              Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
         End if ;
    end;Post-Query trigger:
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
    Enjoy it,
    Francois

  • Dynamically changing form binding

    Hi,
    I would like to dynamically change the binding variable (bind.ref) of a subform during runtime based on a "change event" triggered by a single/multiple selection in a list box, contained in a different subform.
    List box A is part of subform A, during completion of the form, the user selects one or more entries from list box A and triggers a "change event". Based on this event a table, part of subform B, is filled with entries that depend on the users selection in the list box. The rows in this table are determined by the "bind.ref" value of subform B. That means, dependent on the list box selection "bind.ref" will be assigned with a different array, that is also constructed at runtime.
    Before asking for hints to a possible solution, I would like to know whether it is possible in general to change the binding of a subform dynamically (so not in the "initialize event" as in Daniel's case), based on a "change event" triggered by a list box selection?
    Regards,
    Franz

    Hi radzmar,
    Thanks for the reply, much appreciated.
    I also found out more on that topic under another adobe forum post:
    http://forums.adobe.com/message/3607404#3607404
    So, yes it seems the binding of for instance a list box can't be modified once it's set.
    I finally solved my issue by making subforms 'hidden' or 'visible' dependent on the items selected in a list box. This worked reasonably well.
    Cheers,
    Franz

  • Dynamically changing docOrder on a profile

    Hi All,
    I have a profile, which contains an integer metadata field called DocOrder. Is it possible while check - in of a content, to change the DocOrder metadata field of another checked in item
    My requirement: This DocOrder specifies the Document Order. May i know how to set the Docorder dynamically while checkin. i.e. if i checkin a content which has a Release date greater than earlier checked in contents on the same profile, then the Docorder of my currently checkin item should be 1 and the other checked in items should dynamically change their docorder accordingly depends on their Release date
    May i know is this possible?
    Thanks
    S. Muthukumaran

    You could also use the answer mentioned in your other thread: Re: Profile - Dynamically make a field required
    I wonder, however, if having a separate front-end field is the correct approach here - it sounds more like a back-end parameter (a counter reset with the condition mentioned: if i checkin a content which has a Release date greater than earlier checked in contents on the same profile, then the Docorder of my currently checkin item should be 1 ). In that case you could also use global rules.

  • How to dynamically change the text of a TextObject with embedded DataField?

    Hi
    I'm trying to dynamically change the text of a TextObject at runtime, by using the .NET library. My problem is that if one or more DatabaseFieldDefinition is embedded inside my text, I'm unable to change the "static text" only, by keeping the field, e.g. I have :
    Text1 => "Contact Name: {Contact.Name}"
    and I'd like to change it to anything else like:
    Text1 => "Nom du Contact: {Contact.Name}"
    Half of my TextObject is static text while second part comes from the dataset.
    (of course the translation is dynamic - it is called at run-time and the new value to be set depends on the calling application language)
    If I simply modify the Text property of my TextObject, the {Contact.Name} embedded field is not evaluated anymore by the Crystal Engine, but considered as a single text.
    Using formulas or parameters looks quite difficult, because it means having many ones just for translation needs - I cannot control the way my users will create their reports and "force them" to use complex methods just in order to put a text and a value together...
    Anyone knows how to deal with that ?

    Only way I can think of doing this:
    1) Create a formula (call it lang) and enter the string "Contact Name" in it
    2) Place the  {Contact.Name} field next to the string
    3) So now you have:
    ContactName:  {Contact.Name}
    4) Check what localization you are after. If you need "Nom du Contact", change the lang formula so it shows "Nom du Contact" using the code below:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim Report As New CrystalReport1()
    Dim FormulaFields As FormulaFieldDefinitions
    Dim FormulaField As FormulaFieldDefinition
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    FormulaFields = Report.DataDefinition.FormulaFields
    FormulaField = FormulaFields.Item(0)
    FormulaField.Text = "[formula text]"
    CrystalReportViewer1.ReportSource = Report
    End Sub
    I realize this may not give you consistent spacing as the translations may have strings of differnt length. Perhaps someone has other idea(s)...

  • Dynamically changing the name of the .dll file to load in call Library

    Our current model is to use dll files as "plug-in" modules for instruments and a top layer test step calls the appropriate driver dll.
    For instance
    the TestStep is called with the kenmore.dll passed as a parameter so the kenmore.dll file is loaded, the functions are registered and the functions are called.  Next the TestStep is called with whirlpool.dll as a parameter now the whirlpool.dll is loaded the functions are registered and the functions are called.  This works very well in our current CVI/LabWindows environment.  Now we plan to work with LabView, we wish to retain this model (as DLL files, there are advantages in our model for us).  We have not found a way to load these dll files from LabView without hard coding the path and filenames in.
    Any suggestions on how to dynamically change the path in the Call Library module, or another suggested method of loading the dll via LabView?
    Thanks,

    John Stuart wrote:
    Our current model is to
    use dll files as "plug-in" modules for instruments and a top layer test
    step calls the appropriate driver dll.
    For instance
    the TestStep is called with the kenmore.dll passed as
    a parameter so the kenmore.dll file is loaded, the functions are
    registered and the functions are called.  Next the TestStep is
    called with whirlpool.dll as a parameter now the whirlpool.dll is
    loaded the functions are registered and the functions are called. 
    This works very well in our current CVI/LabWindows environment. 
    Now we plan to work with LabView, we wish to retain this model (as DLL
    files, there are advantages in our model for us).  We have not
    found a way to load these dll files from LabView without hard coding
    the path and filenames in.
    Any suggestions on how to dynamically change the path in the Call
    Library module, or another suggested method of loading the dll via
    LabView?
    Thanks,
    As Ben has pointed out LabVIEW
    scripting may be a possibility but you are going with that in highly
    unsupported area. Also I happen to know that changing the library name
    of a Call Library Node through scripting has produced unsupported
    feature errors previous to LabVIEW 7.1 eventhough the method was there.
    And LabVIEW 8 hides the whole scripting business behind the license
    manager.
    Another approach at least if the different DLLs do not change to often
    thier functions and parameters would be to create a wrapper DLL. Have
    it a method that loads the desired DLL and links its functions to
    internal function pointers. Then when calling the actual function entry
    points just redirect directly to the correct fucntion through that
    function pointer. Since you are already working in CVI creating such a
    DLL should be only a matter of taking out a little bit of your already
    existing code and put it into a DLL project.
    Rolf Kalbermatter
    Message Edited by rolfk on 04-12-2006 07:40 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Dynamically change CAN message payload length in XNET

    It took me a while to figure out that when I send 4 bytes into the nxWriteFrame routine when it's defined as an 8 byte message in the DBC, that the message never makes it onto the bus.  Is there a way to dynamically change the payload length of a CAN message at runtime without stopping and starting the session again?

    Hi KavehV,
    It is possible to dynamically change the payload lengthduring RunTime but not without starting and stopping the session. In fact, all changes to the payload length, when done dynamically, is done to the copy of the database in memory as opposed to the one on disk, so whenever your application stops running, the changes are discarded. If you need to change the payload length, you would need to essentially do so before you create a session by opening the database, and modifying the copy that's in memory.
    Raj
    National Instruments
    Applications Engineer

  • Dynamically change label template

    I'm using Apex 4.0.2 and I'm trying to dynamically change the label template for a field from Optional to Required.
    I have one form and in a specific situation (known on page load) an item on this page changes from optional to required. I have a conditional validation on this item, so the user gets an error when the item is null and the condition is met.
    But I would also like to change the item label template from Optional to Required. Is this possible in some way?
    Maybe it is possible or easier with a different template. Currently they are:
    Required Before Label  template:
    <label for="#CURRENT_ITEM_NAME#" tabindex="999"><img src="#IMAGE_PREFIX#apps/required.gif" alt="#VALUE_REQUIRED#" tabindex="999" /><span class="required">
    Optional template:
    <label for="#CURRENT_ITEM_NAME#" tabindex="999">Edited by: InoL on Aug 1, 2011 4:09 PM

    I got the same effect (more or less, just adding a star in front of the label) with jquery:
    $("label[for='P4_REL_ID']").prepend('<img tabindex="999" alt="Value Required" src="/i/apps/required.gif">');

Maybe you are looking for

  • Jabber 9.6 Cannot Currently Add the Contacts

    I'm running Jabber for Windows 9.6 with Jabber Cloud (formerly WebEx Connect).  I have all my internal users in addition to a large number of external contacts including Cisco employees and some of my clients.  Today I was adding 2 contacts at anothe

  • Blank Screen after start-up chime, won't start

    I'm rather perplexed as to what's happened to my PowerBook. I'll run throught it PowerBook 12" 1.33 768 Background: I've just updated it to 10.4.4, which caused it to get stuck at the Apple symbol and spinning wheel. I had to restart in single user m

  • Dynex blu-ray player & 5GHz

    I just got a new router with a dediated 5GHz signal and a separate 2.5GHz signal. My Dynex blu-ray player (the nice little $79 unit - don't have the model) connects to the 2.5 no problem but doesn't seem to recognize the 5. Is there a way to get the

  • Duplicate Crawled Property Name

    Hello I added a terms as "Legal". Then I noticed that it is appearing twice as crawled properties as Legal (Text) ows_Legal_x0020(Text) - It seems like a internal name. Can anyone tell what is logic behind for creating two different properries? Secon

  • Stuck in Slideshow

    I'm having a huge problem with my Macbook Pro (first problem ever).  I was setting up a slideshow with music.  Once it started playing I couldn't get it to stop. I've done a control+alt+esc and that doesn't work.  I've let it run completely down and