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

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

    Posted 11/10/20 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 11/10/20 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 11/10/20 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 11/10/20 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 11/10/20 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 11/11/20 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 11/12/20 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 11/13/20 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 11/15/20 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 11/15/20 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 11/16/20 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