I sometimes find the toggle button(with plus icon) of the rule inputs on the Interface missing. Anyone has an idea as to what is causing this behavior ?
Discussion posts and replies are publicly visible
Hi olalekana0001,
It is showing like this because the value of this rule input is null. If you want to toggle button then go to test and call expression rule or provide any value so toggle button will be available.
Thanks,
Thanks a lot. It helps a bit but i got another error during testing saying my CDT " can only be indexed into using square brackets or the index function". Please do u have an idea on how to solve this issue? Thanks in advance
Can you provide some screenshots of your test
This means that your input is likely a record data type instead of a CDT. Records must be indexed using square brackets, like this:
ri!shipment[recordType!Shipment.fields.description]
See the documentation for more information: docs.appian.com/.../reference-records.html
Thanks for the willingness to help. You are correct that it is a record and not a CDT. But i still have error testing. The screenshot is attached. Can u still help pls
This one is CDT but same error message :
You can't call a Rule Input in your Rule Inputs (Test Inputs). You must declare a value, either empty set ("{}") or some query that pulls back a member of that data type.
Thanks. Its a learn process. I wanted to reference a CDT field within a LocalVariable
Are you still seeing an error for the second screenshot you posted? If you are, I'd suggest posting your full code so we can see what you have defined in line 12 (where the error is occurring).
Thanks a lot. I think the issue is that I still have to learn more about „Using Local Variables“. I have to master the logics behind calling or referencing CDT, records , and Interface within local Variables. If u have personal or simplified materials or resource on that, it would be appreciated. Thanks once again