javascript - QBO3 How to get the PersonID on a form? -


i working on custom form in qbo3 system , calling javascript save data form payment table row. when there 2 fields require personid: createdpersonid , updatedpersonid.

what code should use personid user on form? or can use simple xslt select find data? i.e. <xsl:value-of select="…"/>.

the qbo.security.utilities.xsltextension.cs class made available qbo3 xslts using "urn:qbo3-security" namespace.

in xslt, include namespace in declaration, such as:

<xsl:stylesheet version="1.0" xmlns:security="urn:qbo3-security" ...> 

and can use of extension methods, such as:

<xsl:value-of select="security:userid()"/> // personid; e.g. 128 <xsl:value-of select="security:haspermission('somefunction')"/> // boolean <xsl:value-of select="security:isinrole('administrators')"/> // boolean <xsl:value-of select="security:user()//lastlogin"/> // xml node of person record <xsl:value-of select="security:username()"/> // person; e.g. admin@quandis.com <xsl:value-of select="security:getdefault('qbo.homepage')"/> // url of home page <xsl:value-of select="security:contactname()"/> // contact.contact || person.person 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -