Help for runtime change in list item

hi
i have created a tabuler form and have list_items on it
i want when i
select category monitor then in next list i get monitor's serial numbers
in next record when i select printer then in next list i get printer's serial numbers
i had tried it on first list WHEN_LIST_CHAGE it work for the first time but when i select another category then it generate an error can not create record group a (a is the name of the record group which i had created for the first time )
similarlay with other categories
plz help me

In your code, you should check if the record group already exists. If it does, delete it first before creating it again.
RG := FIND_GROUP('a');
IF NOT ID_NULL(RG) THEN
  DELETE_GROUP(RG);
END IF;
RG := CREATE_GROUP('a'); -- or use CREATE_GROUP_FROM_QUERY
(RG is a variable declared to be of type RECORDGROUP, and "a" is the name of your record group.)

Similar Messages

  • Can i assign a collective srch help for select option in list display

    can i assign a collective srch help for select option in list display

    Hi,
    Yes ,u can assign a collective search help for select-option in list display.
    Eg:
    Define your select option like this
    SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
    Regards,
    Shiva.

  • Dynamically changing the list item based on another list item

    Hi all,
    I have two fields that are list items.
    First list item contain two list values: Regular and One-time
    In second list item if user select the Regular then below values should appear:
    Daily wages
    Activity Linked
    Fixed Contracts.
    Contract Staff
    Outsourced
    if user select the one-time then below values should appear:
    Projects
    Repairs & Maint.
    Please do the needful.

    First list item contain two list values: Regular and One-timeYou simply need to add a conditional check to the When-List-Changed (WLC) trigger to see which value was selected. Then, as Manu suggests, you will populate the Poplist based on the selected value.
    For an example of how to dynamically populate a Poplist item, take a look at: Forms: How to Dynamically Populate a Poplist.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How do I change multiple list items at once in a SharePoint list with ribbon button

    Hi
    I have a sharepoint list and a ribbon button that open a dialog box with buttons to set color on a row
    The problem is that i can only selecet one item at once to set the color. 
    How can i do so it could set all or a couple items att once to the color i want 
    I want to do this with javascript
    here is the code i use to get the item id and the color code is in a seperate js file
    'use strict';
    var clientContext, hostweburl, parentContext, parentWeb, selectedItem, itemId, listId;
    clientContext = new SP.ClientContext.get_current();
    hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
    listId = decodeURIComponent(getQueryStringParameter("SPListId"));
    itemId = decodeURIComponent(getQueryStringParameter("SPListItemId"));
    parentContext = new SP.AppContextSite(clientContext, hostweburl);
    parentWeb = parentContext.get_web();
    selectedItem = parentWeb.get_lists().getById(listId).getItemById(itemId);
    $(document).ready(function () {
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(OnSuccess, OnFail);
    function OnSuccess() {
    $("#Blue").click(function () {
    selectedItem.set_item('Color', 'Blue');
    selectedItem.update();
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(function () { window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, function (sender, args) { alert('Error:' + args.get_message()); });
    $("#Green").click(function () {
    selectedItem.set_item('Color', 'Green');
    selectedItem.update();
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(function () { window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, function (sender, args) { alert('Error:' + args.get_message()); });
    $("#Red").click(function () {
    selectedItem.set_item('Color', 'Red');
    selectedItem.update();
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(function () { window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, function (sender, args) { alert('Error:' + args.get_message()); });
    $("#Transparent").click(function () {
    selectedItem.set_item('Color', 'No Color');
    selectedItem.update();
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(function () { window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, function (sender, args) { alert('Error:' + args.get_message()); });

    Check if below can help you
    http://sp2010batchedit.codeplex.com/
    http://sharepoint.stackexchange.com/questions/35935/use-view-ribbon-custom-action-on-multiple-list-items
    http://webcache.googleusercontent.com/search?q=cache:XqMO-PRLHQIJ:dannyjessee.com/blog/index.php/2014/06/enabling-custom-ribbon-buttons-dynamically-based-on-multiple-selected-item-values-using-refreshcommandui-and-jsom/+&cd=1&hl=en&ct=clnk&gl=in
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction Id="DannyJessee.TestCustomAction"
    Location="CommandUI.Ribbon"
    RegistrationId="100"
    RegistrationType="List">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.ListItem.Actions.Controls._children">
    <Button Id="DannyJessee.MarkItemsFinishedButton"
    Command="cmdMarkItemsFinished"
    Image16by16="/_layouts/images/kpinormallarge-0.gif"
    Image32by32="/_layouts/images/kpinormallarge-0.gif"
    LabelText="Mark as Finished"
    TemplateAlias="o2" />
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="cmdMarkItemsFinished"
    CommandAction="javascript:MarkItemsFinished();"
    EnabledScript="javascript:EnableFinishedButton();">
    </CommandUIHandler>
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    <CustomAction Id="DannyJessee.TestScript"
    Location="ScriptLink"
    ScriptSrc="/_layouts/15/CustomRibbonButton/CustomAction.js" />
    </Elements>
    If this helped you resolve your issue, please mark it Answered

  • Is there any option for voting on a list item in SharePoint 2013?

    Dear All,
    I am looking for a feature vote a for list item from multiple users and need to show consolidated results on that.
    for SharePoint 2013 we have "like", "rating" by using these can we show the consolidated results.
    otherwise is there any alternative for this.
    Thanks & Regards,
    Jithendar

    I haven't seen any OOB vote feature in sharepoint list. It's better to go with "like" or "ratting" options.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • Help for find/change glyphs script

    Hi everyone!
    I need help for creating a script (or modifying existing script) that should replace every Cyrillic character  from an old ASCII font with the same Cyrillic character but from new Unicode font.
    For example: Capital letter 'A' GID=107 from old font (Lazurski) should be replaced with 'A' GID=630 from new one (Myriad Pro).
    I can do this by using Indesign Find/Change - Glyphs, but this will take me too much time.
    So, I need a scrip for this job.
    My first attempt was to use the FindChangeByList script by modifying the FindChangelist.txt document, but without success.
    Here is what I've used until now:
    1)  glyph {glyphID:107, appliedFont:"Lazurski"} {glyphID:630, appliedFont:"Myriad Pro"} {caseSensitive:false, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
    2)  glyph {findWhat:"u00C0", appliedFont:"Lazurski", fontStyle:"Bold"} {changeTo:"0410", appliedFont:"Myriad Pro", fontStyle:"Bold"} {caseSensitive:false, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find ASCII A replace with Unicode A.
    Both lines didn't change anything. What is wrong?
    Any help is welcome!
    Regards,
    Veselin
    P.S. Indesign CS5

    Thank you Jongware!
    The codes (both ID and Unicode) are correct for sure, but even with correct notation (obviously my was wrong) the script don't change anything.
    Here is the line in the FindChangeList:
    text {findWhat:"\u00C0", appliedFont:"Lazurski", fontStyle:"Bold"} {changeTo:"\u0410", appliedFont:"Myriad Pro", fontStyle:"Bold"} {caseSensitive:false, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find ASCII A replace with Unicode A.
    Update:
    Finally, I found what is wrong with the script - the properties "caseSensitive:false".
    By removing that properties the script works fine.
    So, I successfully converted a book with old ASCII Cyrillic font to Unicode Opentype font.

  • Could use some help for creating KPI for Created SharePoint 2010 List Items

    Hello All,
    I am using PPS and connecting to an SP 2010 List as a Datasource.  I'd like to create KPI's against the List showing how many items each individual has created (using the Created column) and set a goal with Indicators showing visual performance (Red,
    Yellow, Green).
    Any guidance is much appreciated!

    I concur with Scott.  Check your Recycle Bin and then also check the Site Collection Recycle Bin.  Once deleted from there, it should free up space.
    As far as the database side of things go, the database would have grown to accommodate the larger list.  If you're trying to recover space on that side of the equation, you'll need to conduct a shrink operation against the database in question.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • Changing Selected list item

    Hello, I've been killing myself looking for a solution to
    this problem:
    I have a master/detail setup, with the detail being a form.
    The initial values of the form come from the dataset.
    This form includes a dropdown list/menu.
    I need that menu to show the current value as selected.
    I have extensively googled the issue, but all of the
    solutions I have come across do it via PHP.
    Unless there is something you're not telling me, I can't use
    PHP in this situation.
    Is there an if/else function in spry that allows me to write
    an attribute like that?
    Please, I really need to get this problem out of the way.
    Thanks

    No, the list is not supposed to set off any spry actions.
    It is simply a list generated by php from a database. What I
    would like to know is how to set a specific item in that list as
    "SELECTED" so that if the user changes something in the form and
    submits it, that doesn't always reset back to the first one.
    The form is as follows right now:
    <select name="status">
    <option value="1">New</option>
    <option value="2">Viewed</option>
    <option value="3">Pending</option>
    <option value="4">Discarded</option>
    <option value="5">Done</option>
    </select>
    In the dataset is a field that is one of those number (1-5).
    What I want to do is have ' selected="selected" on the option
    that corresponds to that data.
    Would it be possible to do this with javascript using
    something like "document.someform.status.option[3].selected"?
    or is there some kind of spry option to do:
    if (dsData::status=this.value) output "selected="selected"

  • F4 help for "Tracking Number" field at Item Overview level in ME51n

    Dear Experts,
    I want add F4 help in tracking number filed (i.e. BEDNR) at item overview.
    Scenario -
    While creating material Purchase requisition, I have to give the related Service PO number in tracking number filed.
    Client requirement is, drop down list (like F4 functionality) should be there to selct PO number. No manual copy & paste option.
    Can anybody tell me any user exit OR process how I can do this.
    Thanks & Regards,
    MilindK

    This can be achieved by adding a Search help to the Data element BEDNR
    Go  to SE11
    Give data element as BEDNR
    Find is there any Search help or not.
    Example:  Do the same thing for MATNR  .. you will find some search help is associated.
    Same way, ask your abaper to create one elementary help and associate to the BEDNR
    Then  automatically F4 will be available
    Regards.
    Venkat

  • Need help for profile change in pdf

    Hello every one,
    I have so many files need to change color profile, maintain 240% ink coverage for this client can supplied me only pdf files. How can I change color profile in acrobat professional? I know only method of Photoshop Profile change UCR, GCR..240%, please help me some one.
    More information:
    I have windows 7 operation system, acrobat 7 with pitsop7.
    Thanks in advance,
    Regards,
    Siva

    i have a separate DTD for my own XML i want to extract my PDF files to that
    XML is it possible may i know how the acrobat export as xml feature works

  • Search Help For An Editable ALV List

    Hi,
    All ABAP Gurus !!
    I have made an Editable ALV with the fields of ZTable. In ALV I want the search help in one of the columns.The entry in that should come from the standard table name-TVM5 and the field which should come is MVGR5. MVGR5  does not contain the search help .Following are the description for my ZTable-------
    Field Name    - MC_NO,
    Data Element - ZZMC_NO1,
    Domain          -ZZMC_NO1.
    While creating this ZTable, in the Entry help/check tab I have also mention Input help with fixed values in the column- Origin of the input help and entered the entries also.
    About ALV (Only one alv column is shown here for reference in which search help or input help is needed of all the possible entries)---
    DATA: INT_FIELDCATALOG2 TYPE LVC_T_FCAT WITH HEADER LINE.
    DATA: WA_FIELDCATALOG2  TYPE LVC_S_FCAT ,
               WA_LAYOUT2        TYPE SLIS_LAYOUT_ALV ,
              GD_LAYOUT2        TYPE LVC_S_LAYO.     "slis_layout_alv.
      WA_FIELDCATALOG2-FIELDNAME      = 'MC_NO'.
      WA_FIELDCATALOG2-TABNAME        = 'T_ITAB2'.            " T_ITAB2 contains all the other fields
      WA_FIELDCATALOG2-SCRTEXT_M     = 'Machine No.'.
      WA_FIELDCATALOG2-EDIT                  = 'X'.
      WA_FIELDCATALOG2-F4AVAILABL   = 'X'.
      WA_FIELDCATALOG2-REF_FIELD       = 'MVGR5'.
      WA_FIELDCATALOG2-REF_TABLE     = 'TVM5'.
    APPEND WA_FIELDCATALOG2 TO INT_FIELDCATALOG2.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
          I_CALLBACK_PROGRAM              = V_REPID
          I_CALLBACK_PF_STATUS_SET   = 'SET_PF_STATUS1'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          IT_FIELDCAT_LVC                        = INT_FIELDCATALOG2[]
          IS_LAYOUT_LVC                         = GD_LAYOUT2
        TABLES
          T_OUTTAB                 = T_ITAB2.
    Please explain in detail
    Thanks to all in advance.

    Please check the following links :
    F4 help -- on editable alv field.
    F4 help in editable ALV
    ALV Editable Grid Control F4 help problem
    And search the forum for  f4 help on editable alv
    KR
    Veeranji Reddy P.

  • New business requirement for ECM changes to BOM item detail

    Hello SAP ECM gurus,
    I need your guidance on below requirement from the customer in ECM.
    We have 'Date effectivity' in our system i.e. object changes become effective on 'valid from' date.
    We also have a custom enhancement where BOM header status is controlled by the 'post approval' process via workflow.
    i.e. BOM status is changed to 11 when 'Complete Change' status is set on OMR and changed back to '01' automatically when 'Release Change' is set on OMR.
    We have a new requirement from business as described below:
    For ex:
    2 components (COMP1 & COMP2) are added to BOM through ECR1 effective from 01-AUG-2011 till Infinity
    2 more components (COMP3 & COMP4) will be added to the same alternate through ECR2 effective from 01-SEP-2011 till Infinity.
    ECR1 changes are made and OMR status set to 'Complete Changes' changes i.e. BOM status is 11 effective from 01AUG2011 till Infinity.
    At this point of time, ECR2 is created. When changes are being made to the same BOM using ECR2, COMP1 & COMP2 (added through ECR1) appear in the BOM.
    This is not desirable for the customer. They do not want to see COMP1 & COMP2 to appear when changes are being made to ECR2 as ECR1 is still not post approved. They expect COMP1 & COMP2 to appear in the BOM only when ECR1 is post approved.
    How can we control effectivity of COMP1 & COMP2 such that, they become available in the system ONLY WHEN  'Release Change' is set on OMR?
    Can 'Parameter Effectivity' be used in this scenario?
    Thank you very much for your advice and guidance,
    BK

    Hi JH thanks for your quick reply,
    Let me describe it more specific, I have two material FG and SFG. Material FG is maintained with valuation type so when we do goods receipt for SFG it's asked to input valuation type in batch field. In stock SFG material qty is separated for each valuation type like batch.
    Now i want to maintain in BOM for FG, where component SFG has fix the valuation type / batch so that in production order we don't have to choose manually. Do you have any idea ?
    Regards,
    Arman

  • Help for a change in ownership

    I gave my husband my old iPad when I got a new one. He wants to delete all of my "stuff" on there, but when he does, all of the "stuff" on my new iPad and iPhone gets deleted also. He has his own Apple ID now. How can he delete "stuff" without me losing mine.

    He should restore the device as New.
    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device
    1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    After Restore has completed you will be prompted to restore as New or from a backup. Choose "New."

  • How to control FONT in list items?

    What can I do in ApEx to control the font of the items in a list?
    I have read other postings here on controlling font size on various items,
    and I have tried every way I can think of to code a #TEXT# statement in various places on the DHTML Tree template.
    I have not been able to change the font size for a DHTML Tree list item.
    I have coded the: &lt style type="text/css" &gt td.t12header (font-family:"Times New Roman";font-size:20px;) &lt/style&gt in the Page Definition / Edit Attributes / HTML Header section, and this DOES alter the font characteristics for the DHTML Tree list heading.
    I see in the generated page source that there are two other CSS labels, "t12body" and "dhtmlTree" on the &lttr that includes the text for the list item, but adding a: td.t12body... or td.dhtmlTree... entry in the &ltStyle ... block does not alter the font of the list item name. I have tried a few other things too, but no luck.
    What entries, and where, can I add that will allow me to alter the font size of a list item?

    Got it.
    The following style block, placed in the HTML Header section in the Page Edit page for the page that has the LIST on it, will control the features of the LIST (a dhtml Tree list in this case):
    (LT)style type="text/css">
    td.t12Header {font-family:"Times New Roman";
                  font-size:50px;
                  font-style:italic;
                  color:blue}
    .dhtmlTree a {font-size:20px;
    color:green}
    (LT)/style>
    The td.t12Header entry controls the characteristics of the LIST header;
    The .dhtmlTree a entry controls the characteristics of the LIST elements.

  • Populating List Item From View

    I have two data blocks in my form, one named USERS which contains updateable fields to a table from the view and another data block called CONTROL which are all list items that currently populate on a WHEN-MOUSE-CLICK trigger. The list items work as expected for the WHEN-MOUSE-CLICK trigger. However, my problem is trying to populate the list items based on a selection previously chosen and saved to the table (yes, the values are in the table and are selectable through the view). I have a seperate population for this occurrance in the WHEN-NEW-FORM-INSTANCE at the form level, as well as on KEY-SCRUP, KEY-SCRDOWN, WHEN-NEW-RECORD-INSTANCE, and POST-QUERY at the USERS data block level. The only way the list items populate on a previously chosen and saved value is if you choose (WHEN-MOUSE-CLICK trigger) the list of values and save. From then on, as I scroll through the data retrieved in the USERS data block the corresponding data in the users view shows up in the CONTROL block list items. How do I get my form to initially show the corresponding list item data on form load when it is already in a WHEN-NEW-FORM-INSTANCE and POST-QUERY trigger on form load?
    Thanks in advance for any clue to point me in the right direction.
    Kyle
    Edited by: Kyle Miller on Sep 29, 2008 3:09 PM

    The form is for editing a current student information system user who we will be extracting data for an OBIEE IDM import. All of the fields displayed in the OBIEE_USERS data block can be edited. For the CONTROL block list items I would like them to display the current value chosen for the user displayed in the OBIEE_USERS data block. When the CONTROL block list items are clicked on then a list of values are displayed in which the logged in form user can chose another value which ultimately changes the choice for the user displayed in the OBIEE_USERS data block. This all works fine in my current form except the list items do not display the current user selected in the OBIEE_USERS data block's saved value until the list item is selected, a value chosen, and a save is committed to the table tied to the OBIEE_USERS data block. From that point I can scroll through the OBIEE_USERS block and the list item displays the correct value for the selected user, if there are values (some users have NULL values). I have currently worked around this issue by displaying the fields in the OBIEE_USERS block and only use the list items for the changing selection. I did this because I needed a proof of concept for the pilot roll-out and could no longer wait to figure this issue out (it should be more simple it seems). I am still interested in resolving this as I feel it is a great functionality for the form.

Maybe you are looking for