Calling anonymous role from html
Hi All,
I'm having a problem difficult to find solution.
I have created a role and assigned anonymous user group to it. Then I've created an html and placed it inside KM and gave link - http://<host>:<port>/irj/portal/anonumous into this html.
Now, when i directly copy the url of this html to IE, the html comes and clicking on the anonumous role link, the role opens.
But, i have cretaed an UME user (it has everyone and authenticated user group assigned to it). Now, i'm logging into portal (http://<host>:<port>/irj/portal) with this user and going to the same html page. And, then when I click on the role link - the new window is coming with anonymous portal link but instantly it's forwarding to the html page again.
Can you guys give me any idea why this is happening. Is it like anonymous link cannt be accessed by logging in.
Pls help as i'm stuck into it. Any help would be appreciated....
Best Regards,
Sen
Hello Sen.
It happens because you do not provide a navigation target in your link.
Modify your link as follows:
http://<host>:<port>/irj/portal/anonymous?NavigationTarget=<target iview in your anonymous role>
Where <target iview in your anonymous role> can be either in [ROLES|http://help.sap.com/saphelp_nw04/helpdata/en/2d/91e33edd37de63e10000000a11405a/frameset.htm] format or [Short Urls|http://help.sap.com/saphelp_nw04/helpdata/en/b3/7b8163404448e7aad7899c0b30313e/frameset.htm] format.
Best regards,
Aliaksandr Zhukau
Similar Messages
-
How to call web services from HTML
Hi All,
Does anybody have an idea on how to call web services from HTML using axis and i am using jboss-4.0.5 as the application server.What did your Google search return?
-
Hi All ,
I am trying to call a report from Static view.Now , I know we can call a page or dashboard from the statis view by writing th HTML content.
Can we also call a report from the Static View .
I tried using :
<a
href="/Analytics/saw.dll?Path=/shared/Sample%20store/_portal/DashboardName/Report%20Name">
Here, the report 'Report Name' is in the dashboard 'Dashboard Name' .
The report location is : /shared/Sample store/Report Folder/Report Name
Can we directly call the report without going to Dashboard as I have tried in above HTML statement.
Thanks!hi,
Create a static view with the following code which will directly open report not the dashboard,if u want you can make the input type as button,I guess we will not get the dynamic report name as your
The report location is : /shared/Sample store/Report Folder/Report Name
The alternative if any user click on that "TEXT" it will take you to that report
{p}
Here, the report 'Report Name' is in the dashboard 'Dashboard Name' .
To edit the report
{input type="text" value ="Report Location is :"
onclick="window.location='saw.dll?Answers&ItemName=Bench To Individual - Help&Folder=/shared/Sample Sales/02 History and Benching&LocItemName=Bench To Individual - Help'"}
{P}
Hope this helps you
PS: Replace {} with <> codes
thanks,
Saichand Varanasi -
Problem while calling java function from html
when i tried to call a java function from html i'm getting an error
object don't support this property.
what could be the reason.
This is my html.
I got this from this forum only.
My applet is accessing the system property "user.home".
I ran it in IE
<DIV id="dvObjectHolder">Applet comes here</DIV>
<br><br>
<script>
if(window.navigator.appName.toLowerCase().indexOf("netscape")!=-1){ // set object for Netscape:
document.getElementById('dvObjectHolder').innerHTML = " <object ID='appletTest1' classid=\"java:test.class\"" +
"height=\"0\" width=\"0\" onError=\"changeObject();\"" +
">" +
"<param name=\"mayscript\" value=\"Y\">" +
"<param name=\"archive\" value=\"sTest.jar\">" +
"</object>";
}else if(window.navigator.appName.toLowerCase().indexOf('internet explorer')!=-1){ //set object for IE
document.getElementById('dvObjectHolder').innerHTML = "<object ID='appletTest1' classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"" +
" height=\"0\" width=\"0\" >" +
" <param name=\"code\" value=\"test.class\" />" +
"<param name=\"archive\" value=\"sTest.jar\">" +
" </object>"
</script>
<LABEL id="lblOutputText">This text will be replaced by the applet</LABEL>
<BR>
<input value="Javascript to java" type=button onClick="document.appletTest1.fromJavaScript()">I tried this example using the repy given to an earlier post.
But its not working with me.
What i did in addition was adding plugin.jar to classpath to import netscape.javascript.*;
Let me add some more details
1) I'll add the stack trace
2) my java progrma
3) batch file to sign the applet.
1) This is the stack trace i don't know whether u will undertand this
load: class test.class not found.
java.lang.ClassNotFoundException: test.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\FastranJava\AppletObject\bin\test\class.class (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception in thread "Thread-5" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2) Java Program
import netscape.javascript.*;
import java.applet.*;
public class test extends Applet
private JSObject win;
private JSObject outputLabel;
private boolean buttonFromJavaClicked=false;
checkJavaScriptEvent evt=new checkJavaScriptEvent();
public void init()
try
evt.start();
win=JSObject.getWindow(this);
outputLabel=(JSObject)win.eval("document.getElementById('lblOutputText')");
outputLabel.setMember("innerHTML", "<center><h1>From Init<br>Your Home directory" + System.getProperty("user.home") + "</h1></center>");
catch(Exception e)
e.printStackTrace();
public void fromJavaScript()
buttonFromJavaClicked=true;
public void fromJavaScript2()
System.out.println("Started Form JavaScript2");
try
String strLbl="<center><h1>From JavaScript<br>Your Homedir:" + System.getProperty("user.home") + "</h1></center>";
outputLabel.setMember("innerHTML", strLbl);
catch(Exception e)
e.printStackTrace();
class checkJavaScriptEvent extends Thread
public void run()
while(true)
if(test.this.buttonFromJavaClicked)
System.out.println("OK buttonfromjava is true");
test.this.buttonFromJavaClicked=false;
fromJavaScript2();
try
Thread.sleep(3000);
catch(Exception e)
e.printStackTrace();
3) Batch file
del *.cer
del *.com
del *.jar
del *.class
javac -classpath ".;C:\Program Files\Java\jre1.5.0_06\lib\plugin.jar" test.java
keytool -genkey -keystore harm.com -keyalg rsa -dname "CN=Harm Meijer, OU=Technology, O=org, L=Amsterdam, ST=, C=NL" -alias harm -validity 3600 -keypass password -storepass password
jar cf0 test.jar *.class
jarsigner -keystore harm.com -storepass password -keypass password -signedjar sTest.jar test.jar harm
del *.class -
Calling a procedure from HTML website
Hello
I have created a procedure which up dates my database.
e.g.
http://mydomain.com/apex/ATC01.LOG_PAGE_HTLM?page_no=1&supplier_key=92185&application_no=88
It records hits etc on website.
I have tested it from a browser it works fine. Now I wish to call it each time a page in a website is loaded.
The solution I have tired is
<body onload="getURL('http://mydomain.com/apex/ATC01.LOG_PAGE_HTLM?page_no=1&supplier_key=92185&application_no=88')">
I may have syntax error or go about this the wrong way
Any help all ways welcome
Regards, PeteDear All
Looks like AJAX is the solution
I looked and try to get it working with my URL without sucesss
Can anyone see waht I am doing wrong?
In this example I used "onclick" what is best way to calling the AJAX as wish to perform it each time a web page is open?
Thanks, Pete
<html>
<head>
<script type="text/javascript">
function loadXMLDoc()
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=function()
if (xmlhttp.readyState==4 && xmlhttp.status==200)
document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
xmlhttp.open("GET","http://www.b2b66.com/apex/ATC01.LOG_PAGE_HTLM?page_no=1&supplier_key=92185&application_no=88",true);
xmlhttp.send();
</script>
</head>
<body>
Edited by: Pete88 on Sep 23, 2011 9:40 AM
Edited by: Pete88 on Sep 25, 2011 8:17 PM -
Problems calling Java Servlets from HTML pages Online
Hello
I have created a Web site using Java Servlets, and have acquired some servlet enabled web-space however i am having some difficulty in calling the actual servlets from the HTML pages i was using the line of code as follows
http://localhost:8080/servlet/....
followed by the name eg.
http://localhost:8080/servlet/Login
however this doesn't seem to be working i have also tried using the exact address of the servlet but this didn't work either
i.e ..servlet/Login.java
I was wondering would anyone have any idea as in how the servlets should be called
Thanks very muchOnce you write the Servlet code, you have to compile and put the classes in the server classpath. To refer these servlets from your pages, you have to configure them in the server configuration(typical a xml file). There you define how you are going to refer to the servlet(/servlet/Logon) and the correponding class.
-Mak -
Calling a function from HTML page
I am using a mixture of jQuery Mobile and Edge Animate to build a mobile app.
When I load the Edge file I need to also call a function in edge at the same time.
How can I call a function that is inside the Edge Animate file from the container HTML file (jQuery button)?Here it is:
sym.displayBAC = function() {
// Set BAC once at begining so we can run the timer less often
sym.currentToday=new Date();
sym.currentHour=sym.currentToday.getHours();
sym.currentMinute=sym.currentToday.getMinutes();
sym.currentTime = sym.currentHour + (sym.currentMinute/60);
if ( sym.currentTime < sym.startTime) {
sym.currentTime = sym.currentTime + 24;
else {
sym.currentTime = sym.currentTime;
sym.drinkingTime = sym.currentTime - sym.startTime;
if (sym.drinkingTime > 24) {
sym.reset();
// convert mls to fluid ounces and multiply by alcohol percenatge
sym.beerOunces = (sym.beerVolume * 0.033814) * sym.beerPercent;
sym.wineOunces = (sym.wineVolume * 0.033814) * sym.winePercent;
sym.spiritOunces = (sym.spiritVolume * 0.033814) * sym.spiritPercent;
sym.champagneOunces = (sym.champagneVolume * 0.033814) * sym.champagnePercent;
sym.premixOunces = (sym.premixVolume * 0.033814) * sym.premixPercent;
sym.shotOunces = (sym.shotVolume * 0.033814) * sym.shotPercent;
sym.cocktailOunces = (sym.cocktailVolume * 0.033814) * sym.cocktailPercent;
sym.ciderOunces = (sym.ciderVolume * 0.033814) * sym.ciderPercent;
// Total the alcohol in liquid ounces
sym.totalOunces = sym.beerOunces + sym.wineOunces + sym.spiritOunces + sym.champagneOunces + sym.premixOunces + sym.shotOunces + sym.cocktailOunces + sym.ciderOunces;
// Formula %BAC = (A x 5.14/W x r) - .015 x H
sym.BAC = Math.round((((sym.totalOunces * 5.14) / (sym.weight * sym.ratio)) - .015 * sym.drinkingTime)*100)/100;
//$.cookie("drinkingTime", sym.drinkingTime, { expires: 365, path: "/" }); -
Is it possible to call a class/servlet from a front-end web page (web page is in HTML form not java form) given that I created my servlet to be executed per class? If there is, can you give me a sample code snippet on how to do this?
An example on how I call a class in my servlet:
coordinate c = new coordinate();
boolean a = c.plot(x,y);
//do somethingBackground:
I have already finished creating the server side code for a website and I chose to call a class inside the doPost() method. The class called will be responsible for executing the logic.
The problem arrives when the web designer created a webpage that requires more than 1 function to be called per page. Since I'm using doPost() which requires the form to be submitted, is there a way to know which submit button is clicked and thus execute the correct function?
I have a plan that I can fall back to which is to change my code so that it will read variables from the URL instead of thru a method call, but it will take more time since there are a lot of methods. I just thought I ask here if there is a way to accomplish the above so that I can save my code from this mess.
Thanks,My servlet is structured in a way that it calls a method with values that it acquires from the webpage. (The initial plan was to enclose the HTML inside a servlet, but was changed so now I need to incorporate my servlets/services inside the HTML)
Like in my example, on the coordinate class x and y are acquired from input boxes located in the web page then invoked the method plot(x,y). Since it will be HTML main and servlet sub, I need a way to call plot(x,y) from an HTML page. Or are you saying that my option would be to just create an intermediary servlet that would acquire the input and then call my class to process. -
Calling Actionscript functions from HTML in Air?
Arg... I feel like I am soo close - but something is not
quite right...
I am stuck on the communcation from Javascript back to
Actionscript in an Adobe Air 1.5 app... (not flex).
here is my Main():
quote:
public class Main extends Sprite {
public var _as3Var:String = "testing";
public function as3Function():void
trace("as3Function called from Javascript");
public function Main() {
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE,
onInvoke);
protected function onInvoke(e:InvokeEvent):void {
NativeApplication.nativeApplication.removeEventListener(InvokeEvent.INVOKE,
onInvoke );
var app = new App();
addChild(app);
app.init(new ExternalContainer(), e.currentDirectory,
e.arguments);
Now, I simply want to either access _as3Var or as3Function()
from my AppSandbox javascript... My HTMLLoader looks like this:
quote:
_html = new HTMLLoader();
_html.useCache = false;
_html.runtimeApplicationDomain =
ApplicationDomain.currentDomain;
_html.load(new URLRequest("sandbox/AirRoot.html"));
And this is my javascript snippit:
quote:
Exposed.testAs3 = function()
air.trace("Exposed.testAs3 called"); /* this works great */
air.trace("runtimeVersion:"); /* this works great */
air.trace(air.NativeApplication.nativeApplication.runtimeVersion);
/* this works great */
air.trace("seeing if I can get to AS3 params..."); /* this
works great */
air.NativeApplication.nativeApplication.as3Function(); /*
this produces an exception: TypeError: Value undefined does not
allow function calls. */
What I am doing wrong?as3Function and _as3Var are members of Main, not the
nativeApplication object.
How you can reference your Main object depends on the
relationship between Main and the HTMLLoader running the
javascript. For example, if _html is a child of Main, you could
call as3Function like this: window.htmlLoader.parent.as3Function().
If _html is not a child of Main, then you can either create a
static reference to Main in the Main class constructor:
public static var mainInstance:Main;
public function Main() {
mainInstance = this;
Or create a reference to Main in your JavaScript object when
you create _html. If _html is created inside Main (so that this is
the Main instance), then the following would work:
_html.window.mainInstance = this;
You could then call as3Function like this:
window.mainInstance.as3Function(); -
Calling a form from html in 10g R1
I have a simple insert/update web-form(10g R1) to maintain employee history.
emp_hist.fmb has fields:
name:
start_date:
end_date:
dept:
Remarks:
This form has a button to output a detail history report of all employees in html.
The html puts a hyperlink for each record, which when clicked brings the user back to emp_hist.fmb
For instance, I enter data for employee B and click the button to generate
html report. Now I click on the hyperlink for employee A in the report,
emp_hist.fmb is called but still displays the data for employee B.
The hyperlink underneath each record in the report which calls the form is:
'http://localhost:8890/forms90/f90servlet?form=emp_hist.fmx'
How do I pass the information to the form that it needs to display
record on employee A and not B ,i.e. record for which ever hyperlink was
clicked?
I would appreciate any help.I am able to invoke the form through the hyperlink in the report html,
but I still have the problem of not being able to pass the required parameter
to have the form display a particular record.
The problem is that the html page might have anywhere from 1 to 100 hyperlinks based on who is logged on.
Each link is a unique set of record. So I need to figure out how to
dynamically obtain the values for the parameters to pass in the URL that calls the
form. The parameter values needs to be assigned based on hyperlink the user clicks on. -
Is there an easy way to invoke an ESS provided page through pure HTML ? (Using <a href >
I am trying to avoid having to witre java code if possible.You can use the Javascript based client side eventing mechanism to navigate to an ESS page. Find the desired page in the Portal Content Studio (role editor) and note the URI. You can find this by clicking on the page and choosing "Properties". Locate the "PCD Location" property box. It will be something like:
portal_content/every_user/general/eu_role/com.sap.portal.mypages/com.sap.portal.eu_ws/com.sap.portal.home
Copy this value to clipboard and Change to:
ROLES://portal_content/every_user/general/eu_role/com.sap.portal.mypages/com.sap.portal.eu_ws/com.sap.portal.home
Use this value in a call to the doNavigate() function:
<A HREF="welcome" onclick="return EPCM.doNavigate ('ROLES://portal_content/every_user/general/eu_role/com.sap.portal.mypages/com.sap.portal.eu_ws/com.sap.portal.home')">This is the Welcome Page</A> -
Calling anonymous block from Unix
I have a very simple block of code I'm calling from a wrapping ksh script, it works well but I'm having a hard time getting output from PL/SQL back to my ksh script.
Output from $OUT1 is none
Please advise.
Script:
#!/bin/ksh
# Set environment
. ~/.profile
export ORACLE_SID=vastrp
sqlplus -s / as sysdba>$OUT1<<!
set serveroutput on size 1000000
DECLARE
scn_num number;
BEGIN
select max(next_change#)-1 into scn_num from v$archived_log where next_time > trunc(sysdate) and next_time < trunc(sysdate) + 5/1440;
dbms_output.put_line('SCN:' || to_char(scn_num));
dbms_output.put_line('Print NOW');
END;
exit;
echo $OUT1
exit
----------------------------------------------------------Here is an example.
1 i=`sqlplus -s xopmaster/xopmaster<< eof
2 set serverout on;
3 set feedback off;
4 set heading off;
5 exec dbms_output.put_line('Hello world');
6
7 exit;
8 eof`
9 echo $i
"test.sh" 9 lines, 155 characters
hdev1:/apps/home/> ./test.sh
Hello world -
Calling Anonymous block from VO
Hi All,
I have an Anonymous block which contains Record types, table types, functions, and procedure. Procedure returns multiple rows using all functions and types. I want to display those rows in Advanced table in OAF page. Please suggest methods to get this done.
Thanks in advance.
Kaushik RambhiyaHi Kaushik ,
You can make use of Prepared statment or Callable statement (both are Java API's ) to call an pl/sql block .
Regards ,
Keerthi -
How do I submit a concurrent request from HTML?
I want to call the request from html or jsp how to ?
can anybody help me?HI,
I have developed a pl/sql program and registered it as concurrent program and i can run this concurrent program using forms.
But our requirement is to run this report even in HTML based application in oracle apps
for eg in Quoting HTML Sales Agent.
But i don't know how to run the concurrent program or to run report registered as concurrent program in HTML Based apllication in oracle apps
please provide some inputs.
Regards,
Mithun -
How to create context sensitive help and call the role based help from my Java Project?
Hello All,
I am new to Robo Help. I have created a Robo help for my Java Web Applicaion. My application is role base i.e some user's will not see some of the pages of the application. So I want to hide those pages in Robo help as well. I tried creating multiple TOC for different Roles.
My Question is
How to call robo Help from my application?(I will be calling using java script. If it is with RoboHelp_CSH.js where can I get that and How to implement it in my project)
How to implement role based help?
Thanks,
Siva.I answered that. My point in asking whether it matters was that if it does, then you cannot use content categories and point different users to different categories and not allow them to see the others.
The alternative, as I said, would be to produce different outputs for each role.
As it does matter, then using webhelp you will have to use your RoboHelp project to produce a number of outputs, one for each category. Your app would install each webhelp into different folders and when your app determines the user role, you will link to the appropriate help.
There is another thread running where it has been explained by Willam van Weelden that you can achieve what you want using browser based AIR help. If that form of help can be considered, then the thread is at http://forums.adobe.com/message/4914753?tstart=0#4914753
Browser based AIR help must be run from a web server. It cannot be installed locally.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge
Maybe you are looking for
-
Why does iTunes ask for me to login when I start the Application?
I used to never have to enter my password right off the bat when I opened the iTunes program. Did an update start requiring this or did I mess with the settings. I tried clicking on on my account and resetting the warnings, but that didn't help. I al
-
I`ve had a problem where I`ve purchased a movie via apple tv, watched half of the movie, then tried to watch he end the next day (before the thing expires), and i get a "...need HDCP for feedback", although everything else on the apple tv works fine
-
My newly bought iPhone 5 was on iOS 6.0.1 everything worked fine and i had no wifi nor battery issues at all until I upgraded it to iOS 6.0. i noticed some battery drainage even when i'm not using my phone at all it still drains 1-2% on standby mode
-
How to add a scale marker in PS CS4 standard? how to update PS extended?
I just installed PS CS4 standard. I found that I needed to have its extended one to add a scale marker in the microscope images. Please let me know how to add a scale marker with PS CS4 starndard. Or, please let me know how to upgrade it to PS CS4 Ex
-
Sony PRS-T1 ereader not appearing in Digital Editions
My Sony PRS-T1 ereader does not appear in Digital Editions for me to be able to transfer ebooks to the ereader. The Adobe site lists this ereader as a supported device. It's software is updated and my version of Digital Editions is 2.0 Any ideas on w