Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Anyone have success setting up row based state definitions using a grid configuration?
Below is a code snippet of my configuration. I have checked that the column "fieldName" matches the field name below, values in my table the states "value", and that I am able to apply general styling to the grid. (see the commented out style). Any ideas on what else could be going on?
"rows": { "selection": "single", "defaultSelectedRows": "", "minHeight": "30", "autoScroll": true, "rowFormatter": { "stateDefinition": { "name": "Entry Difference Indicator", "fieldName": "entryDifferenceIndicator", "type": "not-fixed", "states": [ { "name": "Different Entries", "value": "noEquivalentEntry", "comparator": "==", "styleName": "rowFormatterStyle" } ] } } }, "styles": { "rowFormatterStyle": { "backgroundColor": "blue", "fontWeight": "bold" }, /*"rowBackgroundStyle": { "backgroundColor": "blue", },*/ }
Solved! Go to Solution.
Hi Sharon,
I ended up copying and pasting code from the service "GetEmployeeConfiguration" on the GridAdvancedExampleServices thing found from the link below, and inserting code specific to my project. Most likely some typo in my code that I could not find.
Hi @travman7777
Can you provide more details on the issue? What are you trying to do that isn't working as expected? If you can send some screenshots showing what you want vs. what you are seeing would be helpful.
Regards.
--Sharon
Hi Sharon,
I ended up copying and pasting code from the service "GetEmployeeConfiguration" on the GridAdvancedExampleServices thing found from the link below, and inserting code specific to my project. Most likely some typo in my code that I could not find.