Changes to OITM Item Name replicate to RDR1 Dscription on open order lines

Hi
A quick question, does anyone know if it is practical to have changes to an item's Item Name field replicated to sales orders RDR1 Dscription field on orders which have open lines for that item?
Scenario we face is when an item is made 'obsolete' standard practice is to mark it inactive and edit the OITM Item Name field to contain 'Obsolete'.
We may have sales orders with lines open for this obsolete part which we need to be automatically updated if the original data changes.
Thanks in advance for advice or guidance.

Hi Marli,
Try this:
IF $[RDR1.U_Label] = '2'
SELECT Case T0.U_UPCChoice
When 1 THEN T1.U_UPCRetail
WHEN 2 THEN T1.U_UPCLoc
WHEN 3 THEN T1.U_UPCItem
WHEN 4 THEN 'Look at Attachment'
END
FROM dbo.OCRD T0, dbo.OITM T1
WHERE T0.CardCode = $[$4.0.0] AND T1.ItemCode = $[$38.1.0]
Thanks,
Gordon

Similar Messages

  • Changing runtime menu item names dynamically in executable

    I want to change the language of my application dynamically. In the run-time menu i do this by changing de item names (leaving de item tags the same) In Labview (6.1) this works but in a application builder build executable this don't work.
    Attachments:
    demo_vi.jpg ‏55 KB
    demo_exe.jpg ‏55 KB

    How are you changing the runtime menu dynamically? Are you reading the menu settings from a file? If so you might be losing the path to the file in the executable.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • What is table name in SAP R/3 for PM order line item data

    Hello,
    I am extracting data for PM module and Interested in PM order line item data. Table AUFK is for PM order header master data.
    Is there any other table for PM order line item master data?
    Thanks,
    Ishak

    Hi Ishak,
    The item table is AUFP.
    Thanks.

  • How to find the open po line item by using EKKO &EKPO tables

    Hi Gurus,
        what i am doing is finding out the OPEN PO line item from EKPO table. I know it has to check the ELIKZ field from the EKPO table.Can you please clarify me on the same in more detail.I has to use the ELIKZ  EREKZ fields from EKPO table.

    Use the field ELIKZ in EKPO. If the field is Blank its an OPEN PO Line Item
    refer this link.
    How to open PO line item

  • Can we change NAME OF TAB and ITEM NAME  dynamically at runtime in forms 6i

    Hi all,
    I have a requirement like
    1) based on organization choosen the TAB NAME AND TAB LABLE name in tab canvas should be changed dynamically. can this happen?
    example: In forms i gave the NAME and LABLE OF TAB (PROPERTY PALLET) as *'TAB_INITIAL'* and *'TAB_INITIAL'* respectively .
    when org_1 is choosen , lable should be changed to 'TAB_ORG_1' .
    when org_2 is choosen , lable should be changed to 'TAB_ORG_2'. can the NAME also be changed dynamically??
    2)Similarly can we change the ITEM NAMES present on this tab based on organization selection?
    Thanks,
    Durga Srinivas

    Hello.
    You can perform this by using:
    set_tab_page_property('Tab_page_name', label,'your_desire_label');
    and for item set_item_property.
    More details on these built-ins and also some example can be found in Forms Builder Help.
    Regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • Item name in detail block changed!?  Help please!

    Hi, All
    I have a master-detail relationship. The join condition is Mast.ref_id = Detail.id. There was no returning records when I run datablock. When I came backe to the form, I found that the item name for Detail.Id was changed to FMNITE. I tried a few times, the name changed to different wierd charactors.
    Did anybody have this problem?
    Thanks,
    Deborah

    Hi Deborah,
    I've had two times the same problem. Delete the relation, delete the Item and recreate them both. That was in my cases enough workaround. Before I did it, I have restartet the Forms Builder.
    Have luck
    Gerd

  • How to change a text item to have a link that opens a different page?

    Hi,
    How to change a text item to have a link that opens a different page?
    Thanks,
    Guy

    Hi Denes,
    I understood what the code will do. But it did not work.
    ...a href="f?p=&APP_ID.:2:&SESSION.">LINK</a...
    By default, P5_TASK_NAME displays Task Name which is passed from Page 3.
    So I changed your code as follows so that P5_TASK_NAME value may be displayed with a link.
    ...a href="f?p=&APP_ID.:3:&SESSION.">:P5_TASK_NAME</a...
    But P5_TASK_NAME value appears without any link and does not open page 3.
    Then I created a new text item (display only) in the same HTML region in page 5 and entered the following code in the default box:
    ...a href="f?p=&APP_ID.:3:&SESSION.">LINK</a...
    When I ran the application, it displayed the whole code as text.
    How can I display P5_TASK_NAME value with a link to open page 3?
    Would appreciate your help.
    ... to be replaced with < or >
    Could you please let me know how to display link code correctly?
    Thanks,
    Guy
    Edited by: GUY3 on Mar 11, 2009 4:20 PM

  • [Solved]Portal 10.1.4 - Request Help to Modify Item Name using PL/SQL API

    I have a region on a page that contains content items. These are PDF files that were uploaded. I want to know how I can programmatically change the description.
    I have been looking at both set_attributes() and modify_item_post_upload() functions in the API. Is this my best option, or is there an alternative.
    I have been leaning towards calling modify_item_post_upload(), but have a question on the parameters.
    I can get p_master_item_id, but what is p_item_id?
    I would like to call the method like this:
    declare
    l_masterid number;
    l_display_name varchar2(100);
    begin
    l_masterid := <some number);
    l_display_name := 'New Name for item';
    modify_item_post_upload(
    p_master_item_id => l_masterid,
    p_display_name => l_display_name
    end;
    So questions are:
    1. What modifications do I need for a simple call to change an items name?
    2. What additional functions/procedures do I need to call so the display gets updated with the new information? Do I have to clear the cache suing wxutils, or can I just call wwpro_api_invalidation.execute_cache_invalidation; ?
    If you want the "rest of the story" - I created a web front end in JDeveloper that allows specific end users to login, upload files, and delete items for a specific portal page containing content items. One of the common mistakes is a misspelling of the display name by the end user. So instead of deleting an item, then re-adding an item, the end user would like to edit the display name for just the item that has the misspelling. I have set this up in JDeveloper with an edit screen that contains just the display name. Now I need a function/procedure that I can call from the application module that will update just the display name for this particular item. I have already coded an ADF model that uses the search_item and converts the results into a result_set, and use that to create a View Object in the ADF for JDeveloper to use. Now to finish this user request, I just need to figure out the PL/SQL API part for modifying a display name. The item still needs to keep it's reference to the uploaded PDF file.
    Thanks, Ken

    Very nice! I like the code example. In looking at needing to change only the title of the item, I created a procedure that calls set_attribute. Here is the code:
    create or replace
    procedure update_newslinearchive_item (p_masterid in number, p_displayname in varchar2) as
    cursor items_cur(p_id IN NUMBER) is
    select * from wwsbr_all_items
    where masterid = p_id
    and caid = <pagegroup>
    and active = 1
    and is_current_version = 1
    and language = wwctx_api.get_nls_language;
    items_rec wwsbr_all_items%rowtype;
    begin
    dbms_output.put_line('masterid = ' || to_char(p_masterid));
    dbms_output.put_line('display_name = ' || p_displayname);
    -- Login to the portal for access to function calls
    wwctx_api.set_context('<username>','<password>');
    -- Verify that the item to be deleted is in the items table
    open items_cur(p_masterid);
    fetch items_cur into items_rec;
    if items_cur%found then
    dbms_output.put_line('record found');
    wwsbr_api.set_attribute(
    p_site_id => items_rec.caid,
    p_thing_id => items_rec.id,
    p_attribute_site_id => wwsbr_api.SHARED_OBJECTS,
    p_attribute_id => wwsbr_api.ATTRIBUTE_TITLE,
    p_attribute_value => p_displayname
    wwpro_api_invalidation.execute_cache_invalidation;
    dbms_output.put_line('Clearing Cache');
    -- Now clear the web-cache
    wxvutil.invalidate_reset;
    wxvutil.invalidate_uri('<server:port/path/to/page>,0,null);
    wxvutil.invalidate_exec('<server>',4001,'<webcache password>');
    else
    dbms_output.put_line('record NOT found');
    end if;
    close items_cur;
    exception
    when others then
    dbms_output.put_line('SQLCODE = ' || SQLCODE);
    dbms_output.put_line('SQLERRM = ' || SUBSTR(SQLERRM,1,200));
    if items_cur%isopen then
    close items_cur;
    end if;
    end update_newslinearchive_item;
    Thank you for the example for modify_item_post_upload!
    Ken

  • Process Only Works with Previous Item Name

    I have a textarea item on my page, and a process that submits the text in that item to a column in a table. I decided to rename the item, and so then I changed the name of the item in the PL/SQL process as well; however, for some reason the process only works when I put the original item name in the PL/SQL of the process. Is this some kind of glitch, or am I really doing something wrong? The PL/SQL process is a very simple one and the problem may be able to be fixed by simply deleting it and recreating it again, but it would be nice to know how to prevent this in the future.

    Scott,
    That is correct, I did do it all within a single session. I've made changes like this before without the same error, but they mostly involved using the item name with reports, not processes - which was the case here. Anyway, this is the only time I experienced this error with this much confidence that I had made all the correct changes, so I thought it may be an issue you were aware of. I'll be sure to try the logging out & back in part if I experience this in the future. Thanks.

  • Duplicate Item Name

    Hello all,
    I have a widget in Captivate 5.0 that pulls in an image based on the name of the slide.  The widget is named according to a convention i created.  W_02_0004_02
    This would signify (Module 02 - Slide 0004 - Image 02)
    I had incorrectly labeled one of the widgets and need to change it back
    I receive the following error:  W_02_0004_02 is either a reserved keyword or is already assigned ot another item.  Provide a different name for the item.
    How do i delete the memorized name in Captivate so i can re-use this item name.
    Deleting the "Adobe Cached Projects" folder did not help this issue
    That item name does not exist in the Captivate Library
    I have selected and deleted all unused items in Captivate also.
    Thank you so much for your help,
    ~ Sean

    UPDATE: It seems this issue of not being able recycle Item Names may be fixed in Captivate 5.5.  I know it definitely existed in Captivate 5.0 but I just tested the use case in Cp 5.5 and found I could re-use the item name of a deleted object without triggering an error message.  I only tested on buttons, captions, and highlight boxes.  So there may be some scenarios where this still causes a conflct (e.g if the objects are referenced by Advanced Actions) but I haven't tested this.
    Perhaps you could download the Cp 5.5 trial and check whether upgrading your projects (copies of your projects) would resolve the issue for you.

  • [svn] 4726: Accessibility changes to the MSAA name of several components, as requested by Freedom Scientific.

    Revision: 4726
    Author: [email protected]
    Date: 2009-01-28 18:47:59 -0800 (Wed, 28 Jan 2009)
    Log Message:
    Accessibility changes to the MSAA name of several components, as requested by Freedom Scientific. These changes make Flex controls behave more like standard Windows controls.
    In Accordion and TabBar, the name is now just what is displayed, without " Tab" or " Tab, Active" appended.
    In ComboBox, List, and Tree, the name of each item is now just what it displays, without, for example, "2 of 7" appended.
    Removed an artificial limit of 100000 items in List and Menu.
    A Slider with an MXML id no longer returns that id as its name; no other component does this and id's are certainly no intended to be spoken.
    Removed the getName() method of ComboBase, which isn't used.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Jason
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AccordionHeaderAccImpl. as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/AlertAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ColorPickerAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBaseAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ComboBoxAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/DataGridAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/ListBaseAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/MenuBarAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/SliderAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TabBarAccImpl.as
    flex/sdk/trunk/frameworks/projects/framework/src/mx/accessibility/TreeAccImpl.as

    Hello Brain,
    I have contacted the internal alias to find why the [email protected] alias isn't working for you.
    Regarding the specific question, I have not been able to find a way to achieve the same results in the source view as what the "double-click on the empty Starting Event target" does.
    I can send you specific snippets of code which gets generated for each choice, but unfortunately, there are certain parts of this code which are auto created and should not be edited by the user.
    In my experience with WLI processes, I've noticed that certain operations are restricted to just the design view.
    I'll go ahead and create an internal CR to track this.
    Regarding the second question, I was able to find the documentation you are referring to, but unfortunately I do not have much information regarding the specific configurations. I'll try to get some clarification and get back to you.
    It might help to post this question to the process news group at http://newsgroups.bea.com/bea/forum.jspa?forumID=2047
    cheers
    Raj

  • Hot to get ITEM NAME

    Hello,
    is it possible to use *#CURRENT_ITEM_NAME#* in a function parameter?
    I want a function based validation and create a function. Then I created a element validation in my page with the PL/SQL-Expression Type and insert this code to start the function.
    rpf.vornamecheck(:#CURRENT_ITEM_NAME#)= 1
    In this point I dont want to insert the name of the Item manualy, because if I change the item name i also have to change it in the parameter of this validation.
    I test it a lot of times, but it doesn't work. Is there a other way to get the Name of an item (NOT LABEL)??

    I understand completely what you mean and I agree that it would be very good to have more ways to indirectly reference things to avoid
    hard coding page numbers and column_names. I am a newbie also and did not know javascript but I quickly discovered that it was easier to deal with javascript than to try to do things via plsql because javascript is easily available in the running page whereas to call plsql you have
    to know a lot more about the page load and page submit and partial page refresh and ajax and so forth. I simply do not know myself if there is a way that a change or blur can trigger a plsql check of that which changed. Maybe so using html_db? There's a big gap in my brain regarding that. I have made a personal choice to just go with javascript and not have to tackle the other ways of doing this because they
    are actually harder to understand than I am finding it to learn javascript.
    This is the two part javascript way. In this example we call a very simple javascript function timehourCheck which is defined in the
    javascript section of the page (other locations are possible). If it doesn't like the hour it actually nukes the item value. Note passing this the event object to the function. Some things 'this' has are this.id (the id which is what you asked about) and this.value the value.
    so a question would be is there an equivalent plsql based way of creating the kind of information passing that is obtained via the
    this event object in javascript?
    html form element attributes
    for the page item to be checked:
    onBlur="timehourCheck(this);"
    javascript part of page contains this:
    function timehourCheck(thisobj) {
    var mytext = thisobj.value;
    if (mytext.length == 0)
        {return;}
    if (mytext * 1 > 12)
       {alert('ERROR time hour ' + mytext + ' is > 12');
       thisobj.value = '';
    if (mytext * 1 < 0)
       {alert('ERROR time hour ' + mytext + ' is < 0');
       thisobj.value = '';
    } // end timehourCheck

  • Can the Item Name be passed to Javascript?

    Is there a way to capture the Item Name (or any unique identifier) from the button that was clicked to trigger a javascript?  (I'm working in Captivate 5.5, but others are on 6.0, so I can take either answer if different)
    To provide context, I have a simulation where the user has to make three different choices from three different drop down boxes (choose an appetizer, an entree and a dessert), each choice stored in a variable.  The user then has to assign the three selections to one of 20 places.  Each of the 20 places has 3 variables each to capture the choices for each dining position.
    My problem is that I have to write 20 different Advanced Actions to assign the 3 user choices to the 3 variables for that dining position.  While straightforward enough, as I think through expanded options for the simulation, that will be a complete pain to make changes.  My desire is to write a Javascript that 'constructs' the variable name needed for the cpEISetValue function, so that the same script can be used for each of the 20 buttons.  I know how to the construction part of the variable name, but to do that I would need some kind of unique information about the button that was clicked to construct its unique variable names for the choices.
    Hope that made sense.

    Yes, this is possible:
    Drop a smart shape onto your canvas and set it to work as a button.
    Right-click it and Add Text.  This will enable the Format section in the properties panel.
    Under the Format section, choose a Captivate Variable to be the text of your smartshape button.
    When the button is clicked, you can execute some javascript to get the name of the button like so:
    alert('Button Name: ' + document.Captivate.cpEIGetValue('m_VarHandle.btnName'));
    Where btnName is the Captivate user variable that you're displaying in your smartshape text.  That JavaScript should pop up an alert box with the name of the button.
    You can also set the name of your button from JavaScript if you needed:
    document.Captivate.cpEISetValue('m_VarHandle.btnName', 'Save');
    This would make your button read "Save" in your project.
    Jim Leichliter
    CaptivateDev.com

  • CollectionNode node item names

    Greetings
    I am attempting to create a custom collection node to share some variables. A simple variable is not a problem, but I am having a problem with a value object. It seems I should be able to set the node name to be the name of the VO and the item name to be the property name and the body to be the property value. No matter what, the item name is "item", so you cannot store more than one property.
    So for a CollectionNode named "testModel",
    cnode.publish(new MessageItem("testInt", 1234), true);
    will give (in Room Console)
    CollectionNode: testModel
    Node: testInt
    Items: item -> body = 1234
    That works fine.
    if I do this:
    cnode.publish(new MessageItem("testVO", 1111, "first"), true);
    cnode.publish(new MessageItem("testVO", 2222, "second"), true);
    I would expect:
    CollectionNode: testModel
    Node: testVO
    Items: first -> body = 1111
    Items: second -> body = 2222
    But I actually get:
    CollectionNode: testModel
    Node: testVO
    Items: item -> body = 2222
    It's not supposed to do that, right?
    Also, docs for MessageItem constructor are wrong and it took a long time to figure out.
    I am using Flex 3.5 and AFCS for player 9.

    Hi,
    You nodeConfiguration for the node I believe is STORAGE_SCHEME_SINGLE_ITEM(which is the default). You should change it to STORAGE_SCHEME_MANUAL. Then you can publish different items on the node and it won't be overwritten. Currently, with single item , the id is always itemID and has only one value i.e the last value.
    On storage scheme as manual , you can have different items with different itemIDs(specified by you) on the same node.
    You can change the node configiuration of this node from the dev console(easier) or programmatically.
    If you are doing programmatically, you should do something like this
    var nodeConf:NodeConfiguration = new NodeConfiguration();
    nodeConf.itemStorageScheme = NodeConfiguration.STORAGE_SCHEME_MANUAL;
    collectionNode.createNode("testing",nodeConf);
    Hope this helps.
    Thanks
    Hironmay Basu

  • Change a Wiki group name?

    Hello.
    We've had a wiki set up for a certain group and I'm now required to change the name of said group. I set up a test group called "Test Group", created a wiki for them, then I changed the group name/shortname in WGM, but this new name isn't reflected in the wiki.
    So, wondering, how do I go about making a change to the group name and have it reflected in the wiki?
    Thanks,
    Kristin.

    i had the same problem, and found a solution which worked for me. some of these steps may not be necessary, but i'm not sure which, so...
    1. in workgroup manager, turn off the services and save the group.
    2. then, change the shortname (and long name if you wish), and save the group.
    3. then, re-enable the services and save the group.
    4. stop and restart the webserver and the wikiserver (see below)
    5. use a browser to view the brand new, empty wiki for this group, which also creates the folder for the wiki in /Library/Collaboration/Groups
    6. on the command line, become root and change to the /Library/Collaboration/Groups directory. in there, rename the new group folder to something else
    7. rename the old group folder the new group name
    8. inside the old group folder (with the new name), remove the index.db file
    9. change all the plist files in this directory and any subdirectories to update the file locations to the new directory... (see below)
    10. stop and restart the web and wiki servers (as #4)
    11. use a browser to see the old contents under the new name
    for items 4 and 10, i created the following script to make it easier for me...
    #!/bin/tcsh
    +if ( $uid != 0 ) then+
    +echo 'must be root'+
    else
    +serveradmin stop teams+
    +serveradmin stop web+
    +sleep 2+
    +serveradmin start web+
    +serveradmin start teams+
    endif
    for item 9, as my wiki had nearly 150 pages, i didn't want to edit every file by hand, so inside the group folder i used the following command
    sed -e '/oldgroupname/s//newgroupname/' -i .bk `find . -name \*.plist`
    obviously, i didn't use "oldgroupname" and "newgroupname", and that command needs to be run as root.
    that will use the find command to get the names of all the plist files, and sed will edit each file, changing all instances of the oldgroupname to the newgroupname, and keep a backup of the original plist file with a ".bk" added to the name.
    hope this helps.
    cheers,
    russell

Maybe you are looking for