How to enable a item programmatically

I have disabled a text item and want to enable it programmatically at the record level.
I am using the following code but it doesnot work
set_item_instance_property('block.item_name',current_record,insert_allowed,property_true);
set_item_instance_property('block.item_name',current_record,update_allowed,property_true);
set_item_instance_property('block.item_name',current_record,navigable,property_true);
Thanks in advance.

Hi,
I think your question answer is some where here, look at this in your help file
setting INSERT_ALLOWED to true has no effect at the item instance level unless it is set consistently at the block and item levels. For example, your user cannot type data into an item instance if INSERT_ALLOWED is true at the instance level, but not at the item or block levels.
setting NAVIGABLE to true has no effect at the item instance level unless it is set consistently at the item and item instance levels
Setting NAVIGABLE to true may affect whether the block is considered enterable. A block’s read-only Enterable property will be true if and only if its current record contains an item instance whose effective value for the NAVIGABLE property is true.
etting UPDATE_ALLOWED to true has no effect at the item instance level unless it is set consistently at the block, item, and item instance levels.
Regards, Khawar.

Similar Messages

  • How to enable sent item for resource maillbox.

    Hello Team,
    I have access to shared mailbox. I need emails sent from shared mailbox be sent to "Sent item" folder.
    Does anyone knows the option to enable this feature.
    Thanks
    Srinivas

    Hi,
    To force Outlook to store messages in the Sent Items folder of that same shared mailbox when the messages are sent from a shared mailbox, please follow the steps below:
    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully.
    For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft
    Knowledge Base:
    322756 How to back up and restore the registry in Windows
    A. Install the Outlook 2010 hotfix package that's dated December 14, 2010. For more information about this hotfix package, see the following Microsoft Knowledge Base article: 2459115
    Description of the Outlook 2010 hotfix package (outlook-x-none.msp): December 14, 2010
    B. Enable the hotfix by adding the DelegateSentItemsStyle registry entry, and then set the entry's value to 1. To do this, follow these steps: 
    1. Click
    Start, click Run, type regedit, and then click
    OK.
    2. Locate and then click the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Preferences
    3. On the
    Edit menu, point to New, and then click DWORD Value.
    4. Type
    DelegateSentItemsStyle, and then press Enter.
    5. Right-click
    DelegateSentItemsStyle, and then click Modify.
    6. In the
    Value data box, type 1, and then click
    OK.
    7. Exit Registry Editor.
    We can learn more information from this kb below:
    http://support.microsoft.com/kb/2843677
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Spark list: how to unselect multiple items programmatically?

    Hi, I have a spark list with multiple selection allowed. I want to add a button next to the list with which to deselect all selected items. How do I go about that? I tried to set myList.selectedItems = null, and myList.selectedItems = new Vector.<Object>, but to no avail. Help would be very much appreciated!

    Hi Sam,
    According to your description, my understanding is that you want to update multiple items in another list when updated a list item.
    In the event receiver, you can update the multiple item using Client Object Model.
    Here is a code snippet for your reference:
    public override void ItemUpdated(SPItemEventProperties properties)
    string siteUrl = "http://sp2013sps/sites/test/";
    ClientContext clientContext = new ClientContext(siteUrl);
    List oList = clientContext.Web.Lists.GetByTitle("another list name");
    ListItem oListItem = oList.GetItemById(1);
    oListItem["Title"] = "Hello World Updated!";
    oListItem.Update();
    clientContext.ExecuteQuery();
    Best regards,<o:p></o:p>
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • HOW TO ENABLE ITEM IN RECEIVABLES TO CREATE TRANSACTION IN R12 VERSION

    I am Using R12
    I created one Item In Inventory for operating Unit x1,
    and for that item i enabled the options
    Invoicing
    ---> Invoiceable item
    ---> Invoice Enabled
    Inventory
    ---> Inventory Item
    ---> Stockable Item
    ---> Transactable Item
    When i am creating a new Transaction in X1 operating unit i am not getting the item in the LOV of item. i am getting other items in other operating units but not in X1 operating unit.
    How to enable that item for transaction.
    I Have To Change any Profile option.
    Are Any setup Issue.
    Thanks In Advance
    Prince

    Hi Prince
    You need to post this to an Apps specific forum.
    regards, Tim

  • How to enable purchasing tab in BOM, while defining bom for a item

    dear gurus,
    while defining a bom for a item, there ae various tabs like main, effectivity, OM etc. among that purchasing tab is in disabled state. how to enable that.
    pls provide setup and whats actual use of that.
    waiting fr reply.

    Dear,
    For a phantom assy the special procurement key in the material master should be 50. You have done the right thing.
    But in the BOM of FERT please remove the phantome assy Off indicator. Once you maintained the special procurement key 50 in material master, the phantom indicator will be acutomatically set in the high level bom.
    Hence if you activate the phantom assy off then this will override the phantom indicator
    For more understanding please see trhe below links
    http://www.sap-img.com/production/what-exactly-is-a-phantom-item-or-assembly-means.htm
    Regards,
    R.Brahmankar

  • How to make disable/enable single item recovery effectively Immediately?

    for the following command , "it may take up to one hour to disable single item recovery",my question is how to make the disable/enable  single item recovery
    effectively Immediately by some command?
    SingleItemRecoveryEnabled $false/true
    http://technet.microsoft.com/en-us/library/ff678798(v=exchg.141).aspx
    Please click the Mark as Answer button if a post solves your problem!

    other options:
    Move the mailbox to another DB or if in a DAG, activate the DB on another server. ( the activating seems to work as far as I have seen at least).
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • How to remove these items from Infopath ribbon in web enable form?

    Hi All,
    I am using custom list form customized in infopath 2013, I want to remove these items from ribbon :
    I tried with Infopath  "form Options" like:
    But still showing "Picture-1" options. How to remove those items from ribbob?

    Hi,
    I understand that in the list view web part, you wanted to remove the ribbon of InfoPath form.
    There are to mothed to achieve it:
    Open the list, click new item, edit page, edit web part, unclick the ‘Show InfoPath Ribbon or toolbar’ box, the new item page will remove the riibon.  Then when you open the page which has the list view web part, the ribbon of InfoPath form will also
    be removed.
    Open the page which has the list view web part, edit page, edit the list view web part, unclick the ‘Show InfoPath Ribbon or toolbar’ box, the ribbon of InfoPath form in the web part will be removed. Then when you open the list, the ribbon of InfoPath form
    will also be removed.
    The two method edit the same page newifs.aspx, so the list and the webpart will be modified in the same time.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to enable a partner application for Single Sign-On?

    Can someone please advise me on how to enable my existing J2EE web application for the Oracle Single Sign-On?
    My requirement is i want to provide the single sign-on authentication service to my J2EE web application. For this, I would like to make my application as a partner application similar like the OracleAS Portal.
    I am using Oracle 10g ( OralceAS, Oracle Infra, OID ...)
    I found the following service/APIs which Oracle provides. I am not sure which one is suitable for me.
    1. mod_osso ( Static)
    --- In this case, I have to make a entry in mod_osso.config file to protect the URL. should I have to register the URL again through single sign on admin page ("Administer Partner Application") after make a entry in config file?
    2. mod_osso ( Dynamic directive)
    -- in this case, I have to modify the code by providing the directives like 401, 499.. etc. So i don't prefer this as i don't want to touch my app.
    --If I go with this option, should i have to register the URL with Single sign on server through SSO admin page ( as mentioned in the above step#1) ?
    3. SSO SDK
    - Since it was deprecated and need java coding, i am prefer this option.
    -- however, if i go with this option, i will develop code by using SDK. in this case i need to register the URL in SSO server through admin page.. am i right?
    Note:- OSSO server integrated with Active Directory for the authentication.
    Thanks,
    -Senthil

    sharon38_74 wrote:
    they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
    My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?Your application need to act like a proxy. You can invoke a HTTP request programmatically using java.net.URLConnection. You can set request headers using URLConnection#setRequestProperty(). Also see the API docs: [http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html]. You only need to know the header field name where to set the Base64-encoded value in. You need to Base64-encode the value yourself.

  • How to enable excel downloading in ALV grid report.

    Hi all,
    How to enable excal downing in ALV grid report?
    Thanks in Advance.
    Siva Sankar.

    hi
    check the following code
    Example of a Simple ALV Grid Report
    REPORT  ZTUFI091                                .
    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic requirement for this demo is to display a number of       *
    *& fields from the EKKO table.                                         *
    *REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    gd_layout-totals_only        = 'X'.
    gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
                                            "click(press f2)
    gd_layout-zebra             = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events
                is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    *&      Form  BUILD_EVENTS
          Build events table
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events[].
      read table gt_events with key name =  slis_ev_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    hope it will help you
    regards
    sreelatha gullapalli

  • How to enable the widgets in Indesign CC..?

    Hi,
    I am working on porting our Indesign CS6 plugin to Indesign CC plugin.I have completed the porting and the plugins has opened in Indesign CC,but i have one problem in design. Three of our Widgets has not opened in Indesign CC.
    The code is the following,
    .fr file
    resource SampleDialogWidget (kSDKDefDialogResourceID + index_enUS)
              __FILE__, __LINE__,
              kSampleDialogWidgetID,                    // WidgetID
              kPMRsrcID_None,                                        // RsrcID
              kBindNone,                                                  // Binding
              0, 0, 700,400,                                        // Frame (l,t,r,b)
              kTrue, kTrue,                                        // Visible, Enabled
              kSampleDialogTitleKey,                    // Dialog name
              //<FREDDYWIDGETDEFLISTUS>
    SamplePrefListBox
                                  SamplePreflistboxWidgetID,
                                  kSysOwnerDrawListBoxPMRsrcId,                                                            // WidgetId, RsrcId
                                  kBindAll,                                                                                                              // Frame binding
                                  Frame(15,15,170,360)                                                                                // Frame
                                  kTrue, kTrue,                                                                                                    // Visible, Enabled
                                  1,0,                                                                                                                        // List dimensions
                                  19,                                                                                                                                  // Cell height
                                  1,                                                                                                                                  // Border width
                                  kFalse,kTrue,                                                                                                    // Has scroll bar (h,v)
                                  kTrue,                                                                                                                        // Multiselection
                                  kTrue,                                                                                                                        // List items can be reordered
                                  kTrue,                                                                                                                        // Draggable to new/delete buttons
                                  kTrue,                                                                                                                        // Drag/Dropable to other windows
                                  kTrue,                                                                                                                        // An item always has to be selected
                                  kFalse,                                                                                                                        // Don't notify on reselect
                                  kSamplePrefListElementRsrcID                                                                      // Fill list box with widgets with this ID (default is 0)
                                            CellPanelWidget
                                                      kCellPanelWidgetID, kPMRsrcID_None,                              // WidgetId, RsrcId
                                                      kBindAll,                                                                                          // Frame binding
                                                      Frame(-1,1,154,340)                    // Frame
                                                      kTrue, kTrue                                                                                // Visible, Enabled
                                                                // ----- This is the CPanelControlData that holds the widgets
                                                                //                     that are items in the list box. They are not persistent
                        GenericPanelWithBorderWidget
                    SamplePrefGeneralTabWidgetID, kPMRsrcID_None,
                                  kBindBottom |kBindRight,
                                  Frame(175,10,695,360)                    // Frame
                                  kTrue, kTrue,
                        StaticTextWidget
                                  kInvalidWidgetID,                                                                                // WidgetId (default=0)
                                  kSysStaticTextPMRsrcId,                    // RsrcId
                                  kBindNone,                                                            // Frame binding
                                  10, 15, 138, 35,                                                  // Frame: left, top, right, bottom.
                                  kTrue, kTrue,                                                  // Visible, Enabled
                                  kAlignLeft, kEllipsizeEnd,kTrue,                    // Alignment, ellipsize style
                                  kSamplePrefProjectPathStringKey,                    // Initial text.
                                  kSamplePrefProjectPathTextEditBoxWidgetID          // No associated widget
                        // TextEditBox Widget resource
                        TextEditBoxWidget
                        kSamplePrefProjectPathTextEditBoxWidgetID, // WidgetId
                        kSysEditBoxPMRsrcId, // RsrcId
                        kBindNone, // Frame binding
                        Frame(140, 15, 420, 35), // Frame (l,t,r,b)
                        kTrue, kTrue // Visible, Enabled
                        0, // Widget id of nudge button (0 so we dont get one)
                        0, 0,// small,large nudge amount
                        0, // max num chars(0 = no limit)
                        kFalse,// is read only
                        kFalse,// should notify each key stroke
                        kFalse,// range checking enabled
                        kFalse,// blank entry allowed
                        0, // Upper bounds
                        0, // Lower bounds
                        "", // Initial text
                        ButtonWidget
                                  kSampleChooseProjectButtonWidgetID,
                                  kSysButtonPMRsrcId,
                                  kBindNone,
                                  430, 15, 500, 35,
                                  kTrue, kTrue,
                                  kSampleChooseBtnStringKey,
    GenericPanelWithBorderWidget
                                  SamplePrefFittingTabWidgetID, kPMRsrcID_None,
                                  kBindBottom |kBindRight,
                                  Frame(175,10,695,360)                    // Frame
                                  kTrue, kTrue,
                                  StaticTextWidget
                                                      kInvalidWidgetID,                    // WidgetId
                                                      kSysStaticTextPMRsrcId,                    // RsrcId
                                                      kBindNone,                              // Frame binding
                                                      Frame( 10,15,300,35  ),          // Frame (l,t,r,b)
                                                      kTrue, kTrue, kAlignLeft,          // Visible, Enabled, Alignment
                                                      kDontEllipsize,kTrue,                              //**new element in InDesign 2.0: don't add any ellipses
                                                      "Drag/Drop Operation",                     // Text
                                                      0// WidgetId for associated control for shortcut focus
                                            SeparatorWidget
                                                      0,
                                                      kPMRsrcID_None,
                                                      kBindNone,
                                                      Frame(10,37,450,38),
                                                      kTrue,kTrue,
                                            StaticTextWidget
                                                      0,                    // WidgetId
                                                      kSysStaticTextPMRsrcId,                    // RsrcId
                                                      kBindNone,                              // Frame binding
                                                      Frame( 10, 40, 250, 60  ),          // Frame (l,t,r,b)
                                                      kTrue, kTrue, kAlignLeft,          // Visible, Enabled, Alignment
                                                      kDontEllipsize,kTrue,                              //**new element in InDesign 2.0: don't add any ellipses
                                                      kSampleTextOptionsTextKey,                     // Text
                                                      0                    // WidgetId for associated control for shortcut focus
                                            CheckBoxWidget
                                                      kSampleTextFitCheckBoxWidgetID,                    // WidgetId
                                                      kSysCheckBoxPMRsrcId,                              // RsrcId
                                                      kBindNone,
                                                      Frame(150, 40, 350, 60) //  left, top, right, bottom
                                                      kTrue,                                                                      // Visible
                                                      kTrue,                                                                      // Enabled
                                                      kAlignLeft,                                                            // Alignment
                                                      kSampleTextFitChkBoxTextKey                    // Initial text
    GenericPanelWithBorderWidget
                                  SamplePrefScriptEventsTabWidgetID, kPMRsrcID_None,
                                  kBindBottom |kBindRight,
                                  Frame(175,10,695,360)                    // Frame
                                  kTrue, kTrue,
                                            StaticTextWidget
                                                      0,                                                                                // WidgetId (default=0)
                                                      kSysStaticTextPMRsrcId,                    // RsrcId
                                                      kBindNone,                                                            // Frame binding
                                                      10, 10, 200, 30,                                                  // Frame: left, top, right, bottom.
                                                      kTrue, kTrue,                                                  // Visible, Enabled
                                                      kAlignLeft, kEllipsizeEnd,kTrue,                    // Alignment, ellipsize style
                                                      kSampleDropDownEventsTextKey,                    // Initial text.
                                                      0                    // No associated widget
    SamplePrefListBox
                                                       SamplePrefDragDropScriptlistboxWidgetID, kSysOwnerDrawListBoxPMRsrcId,          // WidgetId, RsrcId
                                                      kBindAll,                                                                                                              // Frame binding
                                                      Frame(10, 35, 200, 120)                                                                                          // Frame
                                                      kTrue, kTrue,                                                                                                    // Visible, Enabled
                                                      1,0,                                                                                                                        // List dimensions
                                                      19,                                                                                                                                   // Cell height
                                                      1,                                                                                                                                   // Border width
                                                      kFalse,kTrue,                                                                                                    // Has scroll bar (h,v)
                                                      kTrue,                                                                                                                         // Multiselection
                                                      kTrue,                                                                                                                         // List items can be reordered
                                                      kTrue,                                                                                                                         // Draggable to new/delete buttons
                                                      kFalse,                                                                                                                         // Drag/Dropable to other windows
                                                      kTrue,                                                                                                                         // An item always has to be selected
                                                      kFalse,                                                                                                                         // Don't notify on reselect
                                                      k SamplePrefListElementRsrcID                                                                      // Fill list box with widgets with this ID (default is 0)
                                                                CellPanelWidget
                                                                          kCellPanelWidgetID, kPMRsrcID_None,                              // WidgetId, RsrcId
                                                                          kBindAll,                                                                                          // Frame binding
                                                                          Frame(-1,1,187,243)                    // Frame
                                                                          kTrue, kTrue                                                                                // Visible, Enabled
                                                                                    // ----- This is the CPanelControlData that holds the widgets
                                                                                    //                     that are items in the list box. They are not persistent
                                            ButtonWidget
      SamplePrefDragDropScriptAddBtnWidgetID,
                                            kSysButtonPMRsrcId,
                                            kBindNone,
                                            20, 125, 90, 145,
                                            kTrue, kTrue,
                                            kSampleAddScriptButtonTextKey,
                                            ButtonWidget
      SamplePrefDragDropScriptRemoveBtnWidgetID,
                                            kSysButtonPMRsrcId,
                                            kBindNone,
                                            100, 125, 180, 145,
                                            kTrue, kTrue,
                                            kSampleRemoveScriptButtonTextKey,
    Elements added:
    void SampleDialogController::PopulatePrefListElement()
    do
                        InterfacePtr<IPanelControlData> iPanelControlData(this, UseDefaultIID());
                        ASSERT(iPanelControlData);
                        if(!iPanelControlData) {CAlert::InformationAlert("IPanelControlData err");break;}
                        SDKListBoxHelper listHelper(iPanelControlData,kSamplePluginID, SamplePreflistboxWidgetID, kSampletDialogWidgetID);
                        IControlView * listBox = listHelper.FindCurrentListBox();
                        if(listBox == nil) {
                        CAlert::InformationAlert("listBox err");
                        break;
                        listHelper.EmptyCurrentListBox();
                        InterfacePtr<IListBoxController> listCntl(listBox,IID_ILISTBOXCONTROLLER);          // useDefaultIID() not defined for this interface
                        ASSERT_MSG(listCntl != nil, "listCntl nil");
                        if(listCntl == nil) {
                        CAlert::InformationAlert("IListBoxController err");
                        break;
                        //Addin the string to the listbox
                        const int targetDisplayWidgetId =SamplePrefOptionTextWidgetID;
                        listHelper.AddElement("General", targetDisplayWidgetId);
                        listHelper.AddElement("Fitting", targetDisplayWidgetId);
                          listHelper.AddElement("Events and Scripts", targetDisplayWidgetId);
                        listCntl->DeselectAll();
    }while(0);
    I dont know how to enable these three widgets in Indesign CC.please refer this code and help me if anyone has idea regarding this problem.
    Thanks in advance,
    Vimala L

    Hi,
    As per ur suggestion,i have done the below changes
    .fr file:
    type SamplePrefListBox
    (kViewRsrcType) : StdListBoxWidgetN
    (ClassID =  kStdListBoxWidgetNewBoss)
    Class
                        kSamplePrefListBoxWidgetBoss,
                         kStdListBoxWidgetNewBoss,
                                  IID_IOBSERVER,kSamplePrefListBoxObserverImpl,
    resource SampleDialogWidget (kSDKDefDialogResourceID + index_enUS)
              __FILE__, __LINE__,
              kSampleDialogWidgetID,                    // WidgetID
              kPMRsrcID_None,                                        // RsrcID
              kBindNone,                                                  // Binding
              0, 0, 700,400,                                        // Frame (l,t,r,b)
              kTrue, kTrue,                                        // Visible, Enabled
      kSampleDialogTitleKey,                    // Dialog name
              //<FREDDYWIDGETDEFLISTUS>
                        SamplePrefListBox
      SamplePreflistboxWidgetID,
                                  kSysOwnerDrawListBoxPMRsrcId,                                                            // WidgetId, RsrcId
                                  kBindAll,                                                                                                               // Frame binding
                                  Frame(15,15,170,360)                                                                                 // Frame
                                  kTrue, kTrue,                                                                                                     // Visible, Enabled
                                  kTrue,                                                                                                                         //Erase before draw
                                  kInterfacePaletteFill,                                                                                 //Interface color
                                  1,0,                                                                                                                         // List dimensions
                                  19,                                                                                                                                   // Cell height
                                  1,                                                                                                                                   // Border width
                                  kFalse,kTrue,                                                                                                     // Has scroll bar (h,v)
                                  kTrue,                                                                                                                         // Multiselection
                                  kTrue,                                                                                                                         // List items can be reordered
                                  kTrue,                                                                                                                         // Draggable to new/delete buttons
                                  kTrue,                                                                                                                         // Drag/Dropable to other windows
                                  kTrue,                                                                                                                         // An item always has to be selected
                                  kFalse,                                                                                                                         // Don't notify on reselect
                                  0,
                                  0,
                                  kFalse,                                                                                                                         // Display root node
                                  kFalse,                                                                                                                         //  Use Horizontal scroll bar
                                  kTrue,                                                                                                                         //  Use vertical scroll bar
                                  19,                                                                                                                                   //  Vertical scroll button increment
                                  1,                                                                                                                                   //  Vertical thumb scroll increment
                                  0,                                                                                                                                   //  Horizontal scroll button increment
                                  0,                                                                                                                                   // Horizontal thumb scroll increment
                                  1,                                                                                                                                   //  Items selectable 1 = Single selection
                                  kFalse,                                                                                                                         //  Allow children from multibler parents to be selected
                                  kTrue //,                                                                                                               //  Allow discontiguous selection
    I got error...,error R32745: # Error: Expected ')'
    SamplePrefListBoxObserver file:
    void SamplePrefListBoxObserver::AutoAttach()
              InterfacePtr<ISubject> subject(this, UseDefaultIID());
              if (subject != nil)
                        subject->AttachObserver(this, IID_ILISTCONTROLDATA);
    void SamplePrefListBoxObserver::AutoDetach()
              InterfacePtr<ISubject> subject(this, UseDefaultIID());
              if (subject != nil)
                        subject->DetachObserver(this, IID_ILISTCONTROLDATA);
    void SamplePrefListBoxObserver::Update(const ClassID& theChange,ISubject* theSubject,const PMIID &protocol,void* changedBy)
    do {
                                  InterfacePtr<IPanelControlData> iPanelControlData(this, UseDefaultIID());
                                  if(!iPanelControlData)
                                  {CAlert::InformationAlert("iPanelControlData err");break;}
                                  InterfacePtr<IWidgetParent> iWidgetParent(this, UseDefaultIID());
                                  ASSERT(iWidgetParent);
                                  if(!iWidgetParent)
                                  {CAlert::InformationAlert("iWidgetParent err");break;}
                                  InterfacePtr<IPanelControlData>          iPanelControlDataDialog(
                                  (IPanelControlData*)iWidgetParent->QueryParentFor(IID_IPANELCONTROLDATA) );
                                  if(!iPanelControlDataDialog)
                                  {CAlert::InformationAlert("iPanelControlDataDialog err");break;}
                                  InterfacePtr<IControlView> view(theSubject, UseDefaultIID()) ;
                                  if (view == nil)
                                  {CAlert::InformationAlert("Can't find the panel control view");break;}
                                  if (view->GetWidgetID() != SamplePreflistboxWidgetID)
                                            if(view->GetWidgetID() == SamplePrefDragDropScriptlistboxWidgetID)
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefUpdateScriptlistboxWidgetID);
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefImportScriptlistboxWidgetID);
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefAutoFlowScriptlistboxWidgetID);
                                            else if(view->GetWidgetID() == SamplePrefUpdateScriptlistboxWidgetID)
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefDragDropScriptlistboxWidgetID);
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefImportScriptlistboxWidgetID);
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefAutoFlowScriptlistboxWidgetID);
                                            else if(view->GetWidgetID() == SamplePrefImportScriptlistboxWidgetID)
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefDragDropScriptlistboxWidgetID);
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefUpdateScriptlistboxWidgetID);
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefAutoFlowScriptlistboxWidgetID);
                                            else if(view->GetWidgetID() == SamplePrefAutoFlowScriptlistboxWidgetID)
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefDragDropScriptlistboxWidgetID);
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefUpdateScriptlistboxWidgetID);
                                                      this->DeSelectList(iPanelControlDataDialog,SamplePrefImportScriptlistboxWidgetID);
                                  if ((protocol == IID_ILISTCONTROLDATA) && (theChange == kListSelectionChangedByUserMessage) )
                                                      if (view->GetWidgetID() ==SamplePreflistboxWidgetID)
                                                                IControlView* generaltab = iPanelControlDataDialog->FindWidget(SamplePrefGeneralTabWidgetID);
                                                                if(!generaltab)
                                                                {CAlert::InformationAlert("generaltab err");break;}
                                                                IControlView* fittingTab = iPanelControlDataDialog->FindWidget(SamplePrefFittingTabWidgetID);
                                                                if(!fittingTab)
                                                                {CAlert::InformationAlert("fittingTab err");break;}
                                                                IControlView* scriptEventTab = iPanelControlDataDialog->FindWidget(SamplePrefScriptEventsTabWidgetID);
                                                                SDKListBoxHelper listHelper(iPanelControlData,kSamplePluginID, SamplePreflistboxWidgetID, kSampleDialogWidgetID);
                                                                IControlView * listBox = listHelper.FindCurrentListBox();
                                                                if(listBox == nil){CAlert::InformationAlert("listBox err");break;}
                                                                InterfacePtr<IListBoxController> listCntl(listBox,IID_ILISTBOXCONTROLLER);
                                                                if(listCntl == nil) {break;}
                                                                int32 Selindex = listCntl->GetSelected();
                                                                if(Selindex!=-1){
                                                                InterfacePtr<IPanelControlData> panelControlData1(listBox, UseDefaultIID());
                                                                if(!panelControlData1) {break;}
                                                                IControlView* cellPanelview = panelControlData1->FindWidget(kCellPanelWidgetID);
                                                                InterfacePtr<IPanelControlData> panelControlData2(cellPanelview, UseDefaultIID());
                                                                if(!panelControlData2) {break;}
                                                                IControlView* cellView = panelControlData2->GetWidget(Selindex);
                                                                InterfacePtr<IPanelControlData> panelControlData3(cellView, UseDefaultIID());
                                                                if(!panelControlData2) {break;}
                                                                IControlView* textView = panelControlData3->FindWidget(SamplePrefOptionTextWidgetID);
                                                                InterfacePtr<ITextControlData> cellText (textView, UseDefaultIID());
                                                                PMString selectedItem = cellText->GetString();
                                                                if(selectedItem=="General")
                                                                          generaltab->ShowView();
                                                                          fittingTab->HideView();
                                                                          scriptEventTab->HideView();
                                                                else if(selectedItem=="Fitting Options")
                                                                          generaltab->HideView();
                                                                          fittingTab->ShowView();
                                                                          scriptEventTab->HideView();
                                                                else if(selectedItem=="Events and Scripts")
                                                                          generaltab->HideView();
                                                                          fittingTab->HideView();
                                                                          scriptEventTab->ShowView();
              } while(0);
    void SamplePrefListBoxObserver::DeSelectList(IPanelControlData* iPanelControlData,WidgetID listBoxWidgetID)
    do
                        SDKListBoxHelper listHelper(iPanelControlData,kSamplePluginID, listBoxWidgetID, kSamplePanelWidgetID);
                        IControlView * listBox = listHelper.FindCurrentListBox();
                        if(listBox == nil) {
                        CAlert::InformationAlert("listBox err");
                        break;
                        InterfacePtr<IListBoxController> listCntl(listBox,IID_ILISTBOXCONTROLLER);          // useDefaultIID() not defined for this interface
                        ASSERT_MSG(listCntl != nil, "listCntl nil");
                        if(listCntl == nil) {
                        CAlert::InformationAlert("IListBoxController err");
                        break;
                        listCntl->DeselectAll(kTrue,kFalse);
    }while(0);
    please refer the above code and help me to develop the plugin.
    We have used the SDKListBoxHelper file in our plugin.If it works in Indesign CC?
    Thanks,
    Vimala L

  • How to validate a item in page based on previous item in same page

    Hi,
    I need to know how we can hide items based on page item
    ie i have 5  item in same page like weighed(radio button) yes / no if user select yes na it ll automatically enable remaining fields like weight,packing charges, courier charges and net total
    and based on packing charges,courier charges, other charges the net charge ll be auto calculated.....
    please any one reply asap..
    Regards,
    Priya

    i have  to align the items in single page(form)....
    ie i have  to arrange the regions in sequential manner
    for example i have x , y , z , a  , b , c , d ,l m  regions
    y  and z in horizontal  in first row
    b  and c  in vertical  in first column
    x and a  in  vertical in second column
    d in vertical in third column
    l  and m in horizontal  in last  row
    y -----------------------  z
    b    x
    c    a    d
    l------------------------m
    to achieve this wat i have to do

  • How to enable ToDo in Mail

    I have two mail accounts, one POP account, and MobileMe. The ToDo feature appears to be disabled on the POP account. The commands are gray on that account. However, when I choose an email from MobileMe I can select text and create a new ToDo item. I can't find any information on how to enable that feature if it's disabled.
    My wife has the same sort of POP account on her Mac and everything seems to work fine.
    Thanks.

    For ToDos to be available to an account, the account must be tied to a calendar server. ToDos are not part of Mail but part of iCal. You can create a ToDo by selecting some text in an email and right-clicking to get the contextual menu.

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to enable "Billing Document- Issue Output To- Issue output to" in VF03

    Plz let me know how to Enable "Billing Document --> Issue Output To --> Issue output to" in the VF03 transaction (2nd screen).
    After entering the billing doc no. n then pressing enter items will be displayed. Then in the menu bar under "Billing Document" there will be "Issue Output To" option will be there.
    Under that again " Issue Output To " & " Screen" options will be there, which by default displayed in disable mode. Is there any option to enable them.

    Hi
    U need to customize a message type for the billing by  trx NACE

  • How to Define an Item which is Produceble and Buyable....in R12

    Hi
    Let us assume there is a Product XYZ which intend to make and as well intend to buy from other sources, how to define this item ixyz n Master Item of Oracle inventory and how to assign Make/Buy in General planning tab.(since for this item I want to put Make and Buy as well)
    Note : The same item XYZ is producing and also buying.
    Thanks
    Raj

    Hi Raj,
    1. The information what you enbale in the Genereal tab region will not stop you to purcahse the material.
    Mark ur item as a Make item...Enable all relevant attributes...
    Enable all the purcase options..
    Then do your Sourcing rule and assignment,,,
    you can produce as well as purchase..
    -Jayabalan ur friend

Maybe you are looking for