<?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 How to Display initial sheet based on User profile? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141629#M21249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be implemented via a simple macro tied to the OnOpen event. You need to associate initial Sheets with users, then link to the User info in Section access, and finally write a macro that would read the available value in the "Initial Sheet" field and open that sheet.&lt;/P&gt;&lt;P&gt;Another way could be using Layout Bookmarks, that you could associate with users. Then the macro would recall a bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2009 02:12:24 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-04-17T02:12:24Z</dc:date>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141627#M21247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a question in displaying startup sheet based on user profile.&lt;/P&gt;&lt;P&gt;For Ex. Qlikview application has 5 sheets as sheet1, sheet2, ..sheet5. when UserA opens Qlkiview application he/she should login to default Sheet2, for UserB should login to Sheet3 and so on. After that users does not have any restriction accessing sheet.&lt;/P&gt;&lt;P&gt;How can I implement this functionality. Any ideas would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks, Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 01:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141627#M21247</guid>
      <dc:creator />
      <dc:date>2009-04-17T01:55:07Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141628#M21248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not sure exactly what you are looking for, but here are some general suggestions that might help.&lt;/P&gt;&lt;P&gt;To find out who is logged in you can use the following functions&lt;/P&gt;&lt;P&gt;OSUser() - which gives the NT login or&lt;/P&gt;&lt;P&gt;QVUser() - Returns a string containing the name of the current QlikView user as entered in a section access.&lt;/P&gt;&lt;P&gt;If you only want certain users to see certain sheets you can use these functions combined with macros and the Show Sheet /Conditional field in sheet properties to show and not show certain sheets.&lt;/P&gt;&lt;P&gt;If you just want a certain sheet to be active upon login and not hide the other sheets, you could create a document bookmark for each group of users that is a layout only bookmark with the desired sheet active. Then on login, either throuh section access or via a macro set to run on open of the QVW to set the appropriate name of the bookmark and then recall the bookmark.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 02:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141628#M21248</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2009-04-17T02:10:42Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141629#M21249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be implemented via a simple macro tied to the OnOpen event. You need to associate initial Sheets with users, then link to the User info in Section access, and finally write a macro that would read the available value in the "Initial Sheet" field and open that sheet.&lt;/P&gt;&lt;P&gt;Another way could be using Layout Bookmarks, that you could associate with users. Then the macro would recall a bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 02:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141629#M21249</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-17T02:12:24Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141630#M21250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark &amp;amp; Oleg for the quick response.&lt;/P&gt;&lt;P&gt;I creates Section Access and linked Document Trigger OnOpen to simple macro that opens a particular sheet. I would need to enhance this macro to use QVUser() with Scetion Access. Any hint to expand this macro.&lt;/P&gt;&lt;P&gt;The problem here is, I am not a macro guy. I need to learn writing macros. Would you please suggest any Qlikview document and/or link to document for me to read.&lt;/P&gt;&lt;P&gt;Thanks, Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 02:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141630#M21250</guid>
      <dc:creator />
      <dc:date>2009-04-17T02:25:58Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141631#M21251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For starters, look at the "QlikView Automation Guide" that's installed as a part of the "Complete" installation in a folder&lt;/P&gt;&lt;P&gt;C:\Program Files\QlikView\Documentation&lt;/P&gt;&lt;P&gt;Then, in the same folder, there is a QVW document called "APIGuide" that describes all various APIs that you can use.&lt;/P&gt;&lt;P&gt;Finally, look under "Share Qlikviews" section of this website - there are numerous examples there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 02:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141631#M21251</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-17T02:46:43Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141632#M21252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, get the APIGuide.QVW it is an invaluable resource when writing macros.&lt;/P&gt;&lt;P&gt;Here is a simple example to get you started&lt;/P&gt;&lt;P&gt;I chose to store the OSUser in a variable called vOSUser. So I just create a variable with the definition of =OSUser()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub GetOSUser&lt;BR /&gt; set v = ActiveDocument.Variables("vOSUser")&lt;BR /&gt; userx = v.GetContent.String&lt;BR /&gt; msgbox userx&lt;BR /&gt; '-Some sort of IF statement based on OSUser&lt;BR /&gt; ActiveDocument.ActivateSheet 2&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 02:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141632#M21252</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2009-04-17T02:53:51Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141633#M21253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a slightly different issue that stems off of this one. I initially was trying to use a macro to set a variable to the value of QVUSER(). It appeared that I couldn't use the macro with the AJAX client, at which point I realized I could just use QVUSER() in my expressions.&lt;/P&gt;&lt;P&gt;The problem I'm having now is that QVUSER() doesn't seem to be valid within set analysis. Here's one of the expressions I'm using:&lt;/P&gt;&lt;P&gt;=COUNT({$ &amp;lt;Status = {'X'}, User = {QVUSER()}&amp;gt; } ID )&lt;/P&gt;&lt;P&gt;I'm using a similar expression in an IF statement in the same app. Here's that expression: if(QVUSER() = User and Type = 'S', Name) I use this expression on a dimension and it works as expected. When I try to use QVUSER() in set analysis I get a syntax error and a null result.&lt;/P&gt;&lt;P&gt;Can I use this function in set analysis? If not, is there an alternative to get the value of the logged in user to pass into a set analysis modifier?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 03:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141633#M21253</guid>
      <dc:creator />
      <dc:date>2009-09-25T03:20:50Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141634#M21254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to use dollar sign expansion on the function as follows:&lt;/P&gt;&lt;P&gt;COUNT({$ &amp;lt;Status = {'X'}, User = {$(=QVUSER())}&amp;gt; } ID )&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 18:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141634#M21254</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2009-09-25T18:52:49Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141635#M21255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Mark. I must've tried a half dozen other variations on the syntax, including dollar expansion, but not this one. My app is working.&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 22:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141635#M21255</guid>
      <dc:creator />
      <dc:date>2009-09-25T22:19:14Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141636#M21256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;I have the similar type of issue.&lt;/P&gt;&lt;P&gt;Will you please send me the macro code which is working with you?&lt;/P&gt;&lt;P&gt;If possible will please you send me the QVW file?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Mahasweta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 18:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141636#M21256</guid>
      <dc:creator />
      <dc:date>2009-12-15T18:18:17Z</dc:date>
    </item>
    <item>
      <title>How to Display initial sheet based on User profile?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141637#M21257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mahasweta,&lt;/P&gt;&lt;P&gt;I'm not sure if you are having the issue within set analysis or if you are trying to direct a user to a default tab based on login. Either way, the same type of code should work. Note that all of my work is based on the AJAX client and its limitations, which include a limited ability to utilize macro code. So I'm not using macros at all, just formulas in either set analysis on an expression or in a Conditional Show Sheet setting.&lt;/P&gt;&lt;P&gt;For set analysis, we are using a formula like this: Count({$&amp;lt;vUserName = {&lt;B&gt;&lt;I&gt;$(=QVUSER())&lt;/I&gt;&lt;/B&gt;}&amp;gt;} SomethingToCount). We are using this in our app because our application requires comparison of a user's data against the entire population of users. As a result we cannot use dynamic data reduction to restrict the data that a user sees, otherwise we'd lose the ability to show the comparison against the full set. We are presenting our app via the web, so we don't have OSUSER() available. But QVUSER() works. The syntax within set analysis was a bit tricky, but the sample above should work for you.&lt;/P&gt;&lt;P&gt;If you want to have a user see a subset of the tabs, you can use a similar expression in the Conditional formula of the Sheet Properties. See Show Sheet under the General tab. I am no longer using this technique, so I'm not exactly sure of the syntax. Something like this ought to do it, though: vUserName = QVUSER().&lt;/P&gt;&lt;P&gt;One thing you may run into in your testing is that you have to publish your app to AJAX then authenticate to it in order to set the QVUSER() variable. That's been a bit of a challenge for me, since I can't test the QVUSER() formulas directly in Developer, but I've worked around it.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 23:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Display-initial-sheet-based-on-User-profile/m-p/141637#M21257</guid>
      <dc:creator />
      <dc:date>2009-12-15T23:05:18Z</dc:date>
    </item>
  </channel>
</rss>

