I'm a beginer of lisp. I modified a lisp to show self defined attributes(which can be input from toolbox "BOM Attr") in structure list. And I wanted to eidt some attributes in structure list. For example, edit material at material column. The material could be input by something new or be choosen from drop-down menu.
I knew I should add a function at ":edit-fnc" But I didn't know how to transfer the value to object.
The api is NODE VALUE . out of the node you get the object (== selitem), and then you put the new value to the object.
Keep in mind: that kind of inline edit might be possible for each and every kind of object. So you might have to add a (when (sd-inq-part-p sel-item) ... )
Dear Wolfgang, Thanks for you help! Now it works. I also found that example, but don't quite understand. After you codes, I know the that better. I should use the “value”directly.
erstellt am: 19. Jun. 2021 14:49 <-- editieren / zitieren --> Unities abgeben: Nur für Andylau
Zitat:Original erstellt von Andylau: Thanks for you help! Now it works.
Glad to hear it's working and I was able to help
for that INLINE Editing in the browser table column you can not provide any kind of (selfmade, additional) user interface, e.g. like a drop down list.
What you can to is to check wether the entered value is valid or not and reject it. When you reject the value (e.g. cross checking against a list of valid entries) the edit function should return NIL .. if it's fine T.
Except the object instance name inline editing isn't very common. _____________________________________
BTW for english speaking people there is the international CoCreate Forum : https://cocreateusers.org/forum/ , but we are aware that the traffic over there is much less compared to cad.de.
Thanks for your further information. osd.cad.de is the most active((No "one of")) forum for osd. For a Chinese like me, I Usually use Chrome to translate Germany to English. Then I can browse most of the post.