English 中文(简体)
如何使用 xe: popoupMenu
原标题:How to use xe:popupMenu

我喜欢在 XPage 中有一个右键点击弹出菜单。 因此, 我使用扩展图书馆在 XPage 中创建了弹出菜单。 菜单没有显示, 不管我尝试什么 。 我是否必须把它绑在按钮上? 如果是, 如何?

问题回答

是的, 它需要被绑在链接或按钮上。 按钮或链接需要使用客户端- 客户端- Side JavaScript 来调用 xe: popoupMenu 。 在扩展图书馆演示数据库中有一个例子, 或者在 XPages 扩展图书馆手册第8章第 252 页中有更多的信息 。

    <xp:eventHandler event="contextmenu" submit="false">
    <xp:this.script><![CDATA[XSP.openMenu(thisEvent,#{javascript:getComponent( pop1 ).getMenuCtor()})
    ]]></xp:this.script>
    </xp:eventHandler>




相关问题
Refreshing profile documents in XPages

I created a profile document in Lotus Notes that saves a boolean value. Then I created an XAgent that returns the value as plain text (either true or false). The problem is: when I changed the value ...

Subtracting date fields in xpages

Can anyone help me to come up with a formula to: (1) subtract dates in xpages [not in lotus client] I am a beginner in xpages with no experience in xpages javascript or xpages expression language. (...

Check if Field is of Type Rich Text with @Formula

I need to check if a field is of type "Rich Text" using @Forumla in a View. How can I achieve this? Alternatively, check the byte size of a field also using @Forumla in a View.

How to make a search bar in XPages?

I have an XPages database ready but I want to make a search page/bar to search through my database and display the linked information. As I am a beginner in XPAGES I would appreciate a step by step ...

using dojox grid in xpages

how to use dojox datagrid in xpages? If anyone have code snippet please send it to me at thinkfatafat@gmail.com I am trying with the following code but getting nothing at the output: <?xml version=...

热门标签