I am currently working on an interface where treelist is used. the form will display list of layers present in the design in tree list. every item is set to be displayed with a check box.. the main purpose of the check box is to serve as a trigger for another form.. but in order to load the form, the condition is to check the checkbox and then retrieve the label of item selected.. To retrieve if the checkbox is checked is quite simple, I just used form->treeViewSelState . what is quite confusing is how to retrieve the label whenever the checkbox is selected.. whenever i use form->curValue or axlformGetField. the label extracted is either nil or "". refer to the code below as reference
;;;;;code used to load items on tree list. note: DESIGN_LAYER_LIST is the list of layers extracted from board
(foreach item DESIGN_LAYER_LIST axlFormTreeViewAddItem(form "treeLayers" item nil nil t))
;;;;;code for form event
("treeHandler" let(() (form->event (normal ;;;;; retrieve checkstate form->treeViewSelState ))))Thanks in advance
("treeHandler" let(() (form->event (normal
;;;;; retrieve checkstate
Thanks in advance
There might be an issue in that area. I just tried on 16.6 using the built in example of tree view (%cdsroot\share\pcb\examples\skill\form\basic) and it shows the same behaviour.
It seems like the first time you select something you get "" back, however selecting another item gives you back the level as expected.
I think you'll have to file a service request to Cadence on this.