有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何在收音机和DocuSign文本之间进行此调用

在下面的代码中,我有一个RadioGroup,名为"Pessoa Politicamente Exposta - Cadastro"

当这个人点击radio button并回答“是”时, 必须出现一个文本字段。我试图使用RadioGroupconditionalParentLabelconditionalParentValue,的属性,但它不起作用

我怎么在收音机和短信之间打这个电话

private List<RadioGroup> getRadioGroups(String numProposta, String seq_envelope) throws Exception {

        List<RadioGroup> radios = new java.util.LinkedList<RadioGroup>();

        String RADIO_GROUPS =
                "SELECT DISTINCT ear.cd_radio, er.ds_radio " +
                        " FROM envelope_assinatura_radio ear " +
                        " left JOIN envelope_radio er on ear.cd_radio = er.cd_radio " +
                        "WHERE ear.cd_envelope = ? " +
                        "  AND ear.seq_envelope = ? ";

        PreparedStatement ps = connection.getConnection().prepareStatement(RADIO_GROUPS);
        ps.setString(1, numProposta);
        ps.setString(2, seq_envelope);

        ResultSet rs = ps.executeQuery();

        String RADIO_GROUP_ITEM =
                "SELECT tag, ds_valor " +
                        "  FROM envelope_assinatura_radio " +
                        " WHERE cd_envelope = ? " +
                        "   AND seq_envelope = ? " +
                        "   AND cd_radio = ? ";

        PreparedStatement psItem = connection.getConnection().prepareStatement(RADIO_GROUP_ITEM);

        while (rs.next()) {

            String cd_radio = rs.getString("cd_radio");
            String ds_radio = rs.getString("ds_radio");

            psItem.setString(1, numProposta);
            psItem.setString(2, seq_envelope);
            psItem.setString(3, cd_radio);

            ResultSet rsItem = psItem.executeQuery();

            RadioGroup group = new RadioGroup();
            group.setRecipientId(seq_envelope);
            group.setGroupName(ds_radio);

            Tabs signerTabs = new Tabs();

            while (rsItem.next()) {
                Radio r = new Radio();
                r.setAnchorString(rsItem.getString("tag"));
                r.setValue(rsItem.getString("ds_valor"));
                //group.conditionalParentLabel("Pessoa Politicamente Exposta - Cadastro");
                //group.conditionalParentValue("Sim_1");

                group.addRadiosItem(r);

            }

            if (group.getRadios().size() > 0) {
                radios.add(group);
            }
        }
        return radios;
    }

private List<Text> getAssinaturaText(String numProposta, String seq_envelope) throws SQLException {
        List<Text> docs = new java.util.LinkedList<Text>();
        String GET_ASSTINATURA_TEXT =

                " SELECT eac.ds_tag " +
                        " FROM envelope_assinatura_text eac" +
                        " WHERE  eac.cd_envelope = ?  " +
                        " AND eac.seq_envelope = ? ";

        PreparedStatement ps = connection.getConnection().prepareStatement(GET_ASSTINATURA_TEXT);
        ps.setString(1, numProposta);
        ps.setString(2, seq_envelope);
        ResultSet op = ps.executeQuery();

            if (op.next()) {
                Text text = new Text();
                text.anchorString(op.getString("ds_tag"));
                docs.add(text);

            }
        return docs;
        }

共 (1) 个答案

  1. # 1 楼答案

    我叫Gloriana,是DocuSign开发人员支持团队的一员

    为了使其正常工作,文本选项卡的conditionalParentLabel和conditionalParentValue属性必须填充单选按钮的标签和将负责条件逻辑的单选按钮的值,单选按钮本身不必填充这些字段。下面是一个示例,说明如何为信封创建定义这些属性,以实现此行为:

    "textTabs": [
        {
            "tabLabel": "Text",
            "conditionalParentLabel": "Radio Group1",
            "conditionalParentValue": "Yes",
            "isPrefilledTab": false,
            "fontSize": "size9",
            "underline": false,
            "italic": false,
            "fontColor": "black",
            "bold": false,
            "font": "lucidaconsole",
            "required": true,
            "locked": false,
            "concealValueOnDocument": false,
            "name": "",
            "shared": false,
            "requireAll": false,
            "requireInitialOnSharedChange": false,
            "value": "",
            "validationPattern": "",
            "validationMessage": "",
            "disableAutoSize": false,
            "maxLength": 4000,
            "width": 84,
            "height": 22,
            "mergeFieldXml": "",
            "recipientId": "64895961",
            "pageNumber": 1,
            "documentId": "1",
            "xPosition": 426,
            "yPosition": 116,
            "trackingId": "c275",
            "trackingid": "c275"
        }
    ],
    "radioGroupTabs": [
        {
            "tabLabel": "Radio Group2",
            "conditionalParentLabel": null,
            "conditionalParentValue": null,
            "isPrefilledTab": false,
            "fontSize": "size9",
            "underline": false,
            "italic": false,
            "fontColor": "black",
            "bold": false,
            "font": "lucidaconsole",
            "shared": false,
            "name": "",
            "tooltip": null,
            "recipientId": "1",
            "documentId": "1",
            "groupName": "Radio Group1",
            "width": 0,
            "height": 0,
            "radios": [
                {
                    "tabLabel": "Radio Group2",
                    "conditionalParentLabel": null,
                    "conditionalParentValue": null,
                    "isPrefilledTab": false,
                    "fontSize": "size9",
                    "underline": false,
                    "italic": false,
                    "fontColor": "black",
                    "bold": false,
                    "font": "lucidaconsole",
                    "shared": false,
                    "required": true,
                    "locked": false,
                    "name": "",
                    "selected": false,
                    "value": "Yes",
                    "tooltip": null,
                    "recipientId": "1",
                    "pageNumber": 1,
                    "documentId": "1",
                    "groupName": "Radio Group1",
                    "xPosition": 342,
                    "yPosition": 103,
                    "width": 0,
                    "height": 0,
                    "trackingId": "c291",
                    "trackingid": "c291"
                },
                {
                    "tabLabel": "Radio Group2",
                    "conditionalParentLabel": null,
                    "conditionalParentValue": null,
                    "isPrefilledTab": false,
                    "fontSize": "size9",
                    "underline": false,
                    "italic": false,
                    "fontColor": "black",
                    "bold": false,
                    "font": "lucidaconsole",
                    "shared": false,
                    "required": true,
                    "locked": false,
                    "name": "",
                    "selected": false,
                    "value": "No",
                    "tooltip": null,
                    "recipientId": "1",
                    "pageNumber": 1,
                    "documentId": "1",
                    "groupName": "Radio Group1",
                    "xPosition": 342,
                    "yPosition": 123,
                    "width": 0,
                    "height": 0,
                    "trackingId": "c292",
                    "trackingid": "c292"
                }
            ]