text input widget and about local pv

53 views
Skip to first unread message

吴煊

unread,
Feb 23, 2014, 8:17:39 PM2/23/14
to css...@googlegroups.com
Hi,

I have a question about text input widget. I set the 'selector type' is 'File'. I need the full path to open the file, however I just want the name only on the display. How can I achieve this?

I have anther question is about loacal PV. I remembered that the value of local PVs are always there if just closed the display not the CSS in the old version of CSS. However the value of local PVs are initialized to zero now even if just close the display. Then it comes out problem for me as I used a lot of local PVs. When I reopen the display, the status of widgets used local PVs changed. This is not I want. I'd like the local PV value kept in memery like before. Do you have some solutions?



Cheers

Xihui Chen

unread,
Feb 24, 2014, 12:32:03 AM2/24/14
to css...@googlegroups.com

   I have a question about text input widget. I set the 'selector type' is 'File'. I need the full path to open the file, however I just want the name only on the display. How can I achieve this?

 You just need to set File Return Part to "Name Only". It will remember the whole path.


I have anther question is about loacal PV. I remembered that the value of local PVs are always there if just closed the display not the CSS in the old version of CSS. However the value of local PVs are initialized to zero now even if just close the display. Then it comes out problem for me as I used a lot of local PVs. When I reopen the display, the status of widgets used local PVs changed. This is not I want. I'd like the local PV value kept in memery like before. Do you have some solutions?


That's the new behavior of PV Manager. You just need to switch back to utility_pv in BOY preference>OPI Runtime>PV Connection Layer to have the old behavior, but please don't use any new syntax from PVManager.

Cheers,
Xihui

吴煊

unread,
Mar 3, 2014, 2:41:07 AM3/3/14
to css...@googlegroups.com
I have set File Return Part to "Name Only", but how can I get the full path in javascript? I tried "var filePath = PVUtil.getString(pvs[0]);" and "var filePath = widget.getPropertyValue("text");" It just return the name.


-----原始邮件-----
发件人: "Xihui Chen" <ztya...@gmail.com>
发送时间: 2014年2月24日 星期一
收件人: css...@googlegroups.com
抄送:
主题: Re: text input widget and about local pv
--
You received this message because you are subscribed to the Google Groups "CSS BOY" group.
To unsubscribe from this group and stop receiving emails from it, send an email to css-boy+unsub...@googlegroups.com.
To post to this group, send email to css...@googlegroups.com.
Visit this group at http://groups.google.com/group/css-boy.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages