pulseui icon indicating copy to clipboard operation
pulseui copied to clipboard

Clicking table NOT setting variable

Open ryanhamilton opened this issue 1 year ago • 2 comments

user-ag

In particular, I want to let the user select a name, and that will be used in subsequent calculations.
For example, I might want to set the variable {{Param}} to equal “abcdParameters.max_abcdefghijklmn_ask_ab”.
However, it appears that string is too long to hold in the variable, and some the variable name doesn’t switch it or when it gets selected.
However parameter names, like “abcdefghParams.bidSize”  are short enough to work fine.

ryanhamilton avatar Apr 09 '24 20:04 ryanhamilton

We have a character limit on the columns set when a table is clicked: if(argVals.length <= 36 && !argVals.includes("/>")) { This is because all state is stored in the URL to allow bookmarking forms fully. Chrome/Edge has a 2083 URL character limit so the table click was limited to important columns with less than 36 character values. Allowing 2-3 columns.

We could instead store the data within Pulse and allow bookmarking/sharing using shortened URLs.

At a minimum I must add the current limit to the docs and warn the authors. The really hard part of the problem is that some values may work then eithers won't as the values are dynamic.

ryanhamilton avatar Apr 09 '24 20:04 ryanhamilton

The recommended workaround for now would be to use a different ID column with short identifiers or to use a form dropdown. Forms only have the overall 2083 limit and not the lower per key limit. Forms also support hidden key values which should be used where possible.

ryanhamilton avatar Apr 09 '24 20:04 ryanhamilton