Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Hide Advanced Schedule option
gowtham
<p>Hi Team,</p>
<p> </p>
<p> I want to hide 'Advanced schedule' option for certain users in iHub 3.1, i searched in some document but i cant able to find it. </p>
<p> For this any direct solution is there or need to write any script, if so how to do that.</p>
<p> </p>
<p>Thanks in Advance.</p>
Find more posts tagged with
Comments
Clement Wong
<p>The Advanced Schedule button is located in a DIV in <strong>schedule.jsp</strong> under <em>...\iportal\iportal\activePortal\private\newrequest </em>in Information Console.</p>
<pre class="_prettyXprint">
<div style="margin-left: 10px;margin-top: 10px">
<html:button styleClass="btn" onclick="javascript:openAdvanceSchedule();" property="Cancel" style='<%= "standalone".equalsIgnoreCase(StartupUtil.getInstallMode()) ?"display:none":"" %>'>
<bean:message bundle="iportalResources" key="BTN_SCHEDULE_ADVANCED" locale="<%= AcConstants.CURRENT_JAVA_LOCALE %>" />
</html:button>
</div></pre>
<p>You can have JSP script to check the user who is logged in via <strong>userinfobean.getUserid() </strong>and display the DIV tag accordingly.</p>
gowtham
<p><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;">Hi Clement,</span></span></p>
<p> </p>
<p><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;"> I have edited the code as below. The div is hided for all the users including Administrator. Is this wrong? Please let me know </span></span></p>
<p> </p>
<p><span style="color:#ff0000;"><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;"><% if( userinfobean.getUserid() == "Administrator" ) { %></span></span></span></p>
<p><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;"><span style="color:#1f497d;"> <div style="margin-left: 10px;margin-top: 10px"> </span></span></span></p>
<p><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;"><span style="color:#1f497d;"> <html:button styleClass="btn" onclick="javascript:openAdvanceSchedule();" property="Cancel" style='<%= "standalone".equalsIgnoreCase(StartupUtil.getInstallMode()) ?"display:none":"" %>'></span></span></span></p>
<p><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;"><span style="color:#1f497d;"> <bean:message bundle="iportalResources" key="BTN_SCHEDULE_ADVANCED" locale="<%= AcConstants.CURRENT_JAVA_LOCALE %>" /></span></span></span></p>
<p><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;"><span style="color:#1f497d;"> </html:button> </span></span></span></p>
<p><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;"><span style="color:#1f497d;"> </div></span></span></span></p>
<p><span style="color:#ff0000;"><span style="font-size:12px;"><span style="font-family:arial, helvetica, sans-serif;"> <% } %></span></span></span></p>
pricher
<p>Hi,</p>
<p> </p>
<p>Try this test instead:</p>
<p> </p>
<p><% if( userinfobean.getUserid().toLowerCase().equals("administrator" )) { %></p>
<p> </p>
<p>Hope this helps,</p>
<p> </p>
<p>P.</p>
gowtham
<p><span style="color:rgb(0,0,0);font-size:12px;font-family:arial, helvetica, sans-serif;">Thanks Richer
its working</span><span style="font-size:12.6px;"><b>.</b></span></p>
yoovrajkhullar
<p>Hi Richer</p>
<p> </p>
<p>The Ihub Db schema which has tables like AC_USER, AC_SCHEDULE, AC_SCHEDULE_DETAIL table to show the details of scheduled Reports on Ihub.</p>
<p> </p>
<p>My question is :</p>
<p> </p>
<p>There is a Table AC_SCHEDULE_DETAIL in it.</p>
<p> </p>
<p>The table contains a column period_day_instance_type with values 0 to 8.</p>
<p> </p>
<p>I want to make a Report which shows the Schedule Report like this </p>
<p> </p>
<p>" Every 3 weeks on Monday, Tuesday at 6:33 PM US/Eastern starting 6/28/2016 "</p>
<p> </p>
<p>i get all this except Monday, Tuesday as i dont know what column it should be . Is it period_day_instance_type ??</p>
<p> </p>
<p>Thanks</p>
<p>Raj</p>