簡體   English   中英

Alfresco-如何在單選按鈕中動態添加更多選項?

[英]Alfresco - How to add more options in a radio button dynamically?

public void notify(DelegateExecution execution) throws Exception {
        execution.setVariable("radio_button_id", "Option 1");
        execution.setVariable("radio_button_id", "Option 2");
        execution.setVariable("radio_button_id", "Option 3");
}

我想添加選項1、2和3,並分別設置ID為option_1,option_2和option_3。 並且應該看起來像這樣

在此處輸入圖片說明

這是我的Java代碼。 但是它沒有用。 需要有關如何在單選按鈕中動態添加更多選項的幫助

基本上,UI定制不能在Java端完成。您需要定制共享表單。

請檢查以下鏈接是否相同。此鏈接包含現有工作流程的工作流程表格配置。

https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/share-workflow-form-config.xml

以下是自定義表單控件的鏈接。您需要為動態控件編寫自己的JavaScript邏輯。

http://docs.alfresco.com/5.0/tasks/forms-custom-formcontrol.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM