Skip to content

Commit 7d95b49

Browse files
Added changes for fixing plugin UI.
1 parent ae8fd1a commit 7d95b49

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

src/main/java/io/cdap/plugin/servicenow/connector/ServiceNowConnectorConfig.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,40 @@
2929

3030
import java.util.Map;
3131

32+
import javax.annotation.Nullable;
33+
3234

3335
/**
3436
* PluginConfig for ServiceNow Connector
3537
*/
3638
public class ServiceNowConnectorConfig extends PluginConfig {
3739
@Name(ServiceNowConstants.PROPERTY_CLIENT_ID)
3840
@Macro
41+
@Nullable
3942
@Description(" The Client ID for ServiceNow Instance.")
4043
private final String clientId;
4144

4245
@Name(ServiceNowConstants.PROPERTY_CLIENT_SECRET)
4346
@Macro
47+
@Nullable
4448
@Description("The Client Secret for ServiceNow Instance.")
4549
private final String clientSecret;
4650

4751
@Name(ServiceNowConstants.PROPERTY_API_ENDPOINT)
4852
@Macro
53+
@Nullable
4954
@Description("The REST API Endpoint for ServiceNow Instance. For example, https://instance.service-now.com")
5055
private final String restApiEndpoint;
5156

5257
@Name(ServiceNowConstants.PROPERTY_USER)
5358
@Macro
59+
@Nullable
5460
@Description("The user name for ServiceNow Instance.")
5561
private final String user;
5662

5763
@Name(ServiceNowConstants.PROPERTY_PASSWORD)
5864
@Macro
65+
@Nullable
5966
@Description("The password for ServiceNow Instance.")
6067
private final String password;
6168

widgets/ServiceNow-batchsource.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@
128128
{
129129
"label": "Table Mode",
130130
"properties": [
131+
{
132+
"widget-type": "textbox",
133+
"label": "Table Name",
134+
"name": "tableName",
135+
"widget-attributes": {
136+
"placeholder": "ServiceNow table name from which data to be fetched"
137+
}
138+
},
131139
{
132140
"label": "browse",
133141
"widget-type": "connection-browser",
@@ -136,14 +144,6 @@
136144
"connectionType": " SERVICENOW",
137145
"label": "Browse"
138146
}
139-
},
140-
{
141-
"widget-type": "textbox",
142-
"label": "Table Name",
143-
"name": "tableName",
144-
"widget-attributes": {
145-
"placeholder": "ServiceNow table name from which data to be fetched"
146-
}
147147
}
148148
]
149149
},
@@ -215,6 +215,10 @@
215215
{
216216
"type": "property",
217217
"name": "tableName"
218+
} ,
219+
{
220+
"type": "property",
221+
"label": "browse"
218222
}
219223
]
220224
},

0 commit comments

Comments
 (0)