Significance of hidden fields $$viewid, $$xspsubmitid, $$xspexecid, $$xspsubmitvalue and $$xspsubmitscroll

回眸只為那壹抹淺笑 提交于 2021-02-07 10:09:43

问题


When I view the source of my XPage I see the some hidden fields $$viewid, $$xspsubmitid, $$xspexecid, $$xspsubmitvalue and $$xspsubmitscroll. There are some articles like this and this which explain that $$xspsubmitid contains the ID of the event handler that triggered the update. Not much information seems to be available for other fields.

What is the significance of these fields?


回答1:


Ok the details I could find.

$$viewid = Contains the ID for the backend control tree associated with that XPage. You need that if you are accessing the backend controls. Detailed in the "XPages Portable Command Guide".

$$xspsubmitid = Is loaded with the Event handler ID of what event you want to execute.

$$xspsubmitvalue = The value you are submitting.

$$xspexecid = The execution ID of controls you want validators to run on (as far as I know).

$$xspsubmitscroll = This is used to pass the location on the page the submit button is to the server, so that it knows to scroll back to that position when returning.

They are mostly used by XSP.fireEvent() (Used Internally by XSP.attachEvent(). Private function). If you want to see the DOJO code related to these, it is contained in the XSPClientDojo.uncompressed.js file.

Another place to read up on these is here:

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.ui.doc/wpd_controls_events.html



来源:https://stackoverflow.com/questions/14380359/significance-of-hidden-fields-viewid-xspsubmitid-xspexecid-xspsubmitv

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!