Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Open and set few properties value on saved Entry Template

Community Support Admin

Community Support AdminTue November 10, 2020 11:10 AMBest Answer

  • 1.  Open and set few properties value on saved Entry Template

    Posted Tue November 10, 2020 08:20 AM

    Dear support,

    i am using version 3.0.3.

    i create a new Action that open saved EntryTemplate by using ecm/widget/dialog/AddcontentItemDialog.

    i have to set some propertyValue after the EntryTemplate Is loaded.

    i use

    aspec.after(addContentItemDialog.addcontnetItemPropertiesPane,"onCompleteRendering",lang.hitch(addContentItemDialog,function(){

    })).

    it heppen 2 times,it effect only on the 2 time. i use

    addItemDialog.addcontnetItemPropertiesPan.setProperty("property1",value);

    but if i am add

    addItemDialog.addcontnetItemPropertiesPan.setProperty("property2",value);

    it will not effect the screen, it looks like the func setProperty can be run once.

    is way to fix this issue?

    there is othre way to achive that (except the EDS)?

    Thank you



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Tue November 10, 2020 08:43 AM

    Hi,

    Does the EntryTemplate have layout or not? The method to set property value is different if layout is used.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Tue November 10, 2020 09:48 AM

    Hi

    While you say layout do you mean if i create some custom property layout?






    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Tue November 10, 2020 10:32 AM

    Hi,

    When you edit the EntryTemplate, you may see "Edit Layout" button. If the layout is customized, the Clear button is enabled. Otherwise Clear is disabled.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Tue November 10, 2020 11:10 AM

    Hi, thank you

    Clear is enable, i am using layout



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 6.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Wed November 11, 2020 01:24 AM

    Hi,

    You may set the property as below.

    this._commonProperties.setPropertyPropertyValue("property_id", "value", "your_value");

    Refer to ecm.widget.AddContentItemPropertiesPane.afterRenderAttributes() function.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 7.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Thu November 12, 2020 09:45 AM

    Thank you,

    do you know if it possible to set (EDS) choice list one value in that way? it work only for field value with no choice list



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 8.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Fri November 13, 2020 02:52 AM

    Hi,

    It should work for choice list too. Set the property to the actual value instead of the display value.

    Regards,

    Angie​



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 9.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Sun November 15, 2020 09:18 AM

    For regular field, this._commonProperties.setPropertyPropertyValue("property_id", "value", "your_value"); work.


    for choice List or eds choice List

    this._commonProperties.setPropertyValue("property_id", "your_value"); work .


    Thank You



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 10.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Sun November 15, 2020 07:58 PM

    It should work for choice list too. Set the property to the actual value instead of the display value.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 11.  RE: Open and set few properties value on saved Entry Template
    Best Answer

    Posted Mon November 16, 2020 10:39 AM

    It should work for choice list too. Set the property to the actual value instead of the display value.

    Kodi nox



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration