<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: No able to access variable of YUI events in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/no-able-to-access-variable-of-yui-events/m-p/107539#M30292</link>
    <description>&lt;P&gt;1) You actually have to make a call to a web script somewhere - in the code sample you provided there is no mention of any call to a *.get.js web script anywhere&lt;/P&gt;
&lt;P&gt;2) any event details that you need in your web script you have to pass yourself by providing them in the URL query arguments&lt;/P&gt;
&lt;P&gt;3) any access to nodes will require you to lookup nodes based on their node ref or metadata - you don't magically get a node that you can access. In a JS file, this will usually be done vie search.findNode(ref) or search.query(paramObj)&lt;/P&gt;</description>
    <pubDate>Sun, 17 May 2020 16:30:22 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2020-05-17T16:30:22Z</dc:date>
    <item>
      <title>No able to access variable of YUI events</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-able-to-access-variable-of-yui-events/m-p/107538#M30291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have written below code in one js file .. to add&amp;nbsp; custom functionality o n my action:&lt;/P&gt;&lt;P&gt;onActionCreatePackage: function dlA__createPackage(record)&lt;BR /&gt;{&lt;BR /&gt;if (!this.modules.createPackage)&lt;BR /&gt;{&lt;BR /&gt;this.modules.createPackage = new Alfresco.module.DoclibCreatePackage(this.id + "-createPackage");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;var zIndex = 0;&lt;BR /&gt;if (this.fullscreen !== undefined &amp;amp;&amp;amp; ( this.fullscreen.isWindowOnly || Dom.hasClass(this.id, 'alf-fullscreen')))&lt;BR /&gt;{&lt;BR /&gt;zIndex = 1000;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;var parentElement = undefined;&lt;BR /&gt;if (Dom.hasClass(this.id, 'alf-true-fullscreen'))&lt;BR /&gt;{&lt;BR /&gt;parentElement = Dom.get(this.id);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;this.modules.createPackage.setOptions(&lt;BR /&gt;{&lt;BR /&gt;siteId: this.options.siteId,&lt;BR /&gt;containerId: this.options.containerId,&lt;BR /&gt;path: this.currentPath,&lt;BR /&gt;files: record,&lt;BR /&gt;rootNode: this.options.repositoryBrowsing ? this.modules.createPackage.options.rootNode : this.options.rootNode,&lt;BR /&gt;repositoryRoot: this.options.repositoryRoot,&lt;BR /&gt;parentId: this.getParentNodeRef(record),&lt;BR /&gt;zIndex: zIndex,&lt;BR /&gt;parentElement : parentElement ? parentElement : undefined,&lt;BR /&gt;currNodeRef: record.nodeRef&lt;BR /&gt;}).showDialog()//.showDialog(); //setOptions(&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;But how can i access this currNodeRef in my .get.js file.&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 04:45:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-able-to-access-variable-of-yui-events/m-p/107538#M30291</guid>
      <dc:creator>Isha</dc:creator>
      <dc:date>2020-05-12T04:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: No able to access variable of YUI events</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-able-to-access-variable-of-yui-events/m-p/107539#M30292</link>
      <description>&lt;P&gt;1) You actually have to make a call to a web script somewhere - in the code sample you provided there is no mention of any call to a *.get.js web script anywhere&lt;/P&gt;
&lt;P&gt;2) any event details that you need in your web script you have to pass yourself by providing them in the URL query arguments&lt;/P&gt;
&lt;P&gt;3) any access to nodes will require you to lookup nodes based on their node ref or metadata - you don't magically get a node that you can access. In a JS file, this will usually be done vie search.findNode(ref) or search.query(paramObj)&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 16:30:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-able-to-access-variable-of-yui-events/m-p/107539#M30292</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-05-17T16:30:22Z</dc:date>
    </item>
  </channel>
</rss>

