To find the popup root from pagetemplate in adf..

Dear,
I'm using jdev11g.
In my project having pagetemplate, inside the template i'm adding favorite menu like IE favorite with same functionalities.
Is there any possiblities to find the pagetemplate Id, which will use to find the popup. i want to avoid page overwrite. OR can set the pagetemplate id dynamically
Now i'm using the popup with two button(add and cancel).
while clicking the add button, if the page is already added in favorite, i want to show one more popup to get the confirmation from the user. In the second popup having two button(ok and cancel).
if the user click ok, it will overwrite,
if click cancel the page should not overwrite. For this case, instead of second popup, i'm using javascript confirm() method. but it is overwrite, while click the cancel button.
can any one help me.
Thanks in advace
Regards,
Rengaraj
Edited by: user11129216 on Jul 8, 2009 11:19 PM

Hi,
can you try setting the ComponentVar attribute on the template definition (e.g. "mytemplate")
You can then access the template instance from Java
private RichPageTemplate getTemplateHandle(){
  FacesContext fctx = null;
  fctx = FacesContext.getCurrentInstance();
  ELContext elctx  = fctx.getELContext();
  Application app = fctx.getApplication();
  ExpressionFactory elFactory = null; 
  elFactory = app.getExpressionFactory();
  ValueExpression valueExpr = null;   
  valueExpr  = elFactory.createValueExpression(
               elctx,
               "#{mytemplate}",
               Object.class);
  RichPageTemplate template =
    (RichPageTemplate) valueExpr.getValue(elctx);
  return template;
}You should be able to get the id of this instance in Java and make it available to your popup search
Frank

Similar Messages

  • I have upgrade ios 6 to ios7 on my iphone 5.  I do NOT like it.  I want to come back to the previosu version.  why is it so complicated.  Why can I not find the instruction strait from apple? This is the worst possible upgrade ever.

    I have upgrade ios 6 to ios7 on my iphone 5.  I do NOT like it at all.   I want to come back to the previous version.  why is it so complicated? Why can I not find the instruction strait from apple? This is the worst possible upgrade ever.  It make me think of when ericsson got sold to Sony....drastic PC change.
    I would like to have simple instruction on how to downgrade.
    It feel like a change that I did not ask for , ok I push the upgrade buttom, but really this is the worst update aver!
    HELP!

    iPhone User Guide (For iOS 7 Software)Sep 20, 2013 - 23 MB

  • HT201514 i can't see the time capsule from airport utilities. i did follow "From the Apple menu, choose System Preferences. Choose View Time Machine. Set Time Machine to On if it is off. .....but i couldn't find the time capsule from airport utility.....

    i did follow "From the Apple menu, choose System Preferences. Choose View > Time Machine. Set Time Machine to On if it is off "
    . .....but i couldn't find the time capsule from airport utility..... why?

    Are you using a new 802.11ac Time Capsule - the "tall" one - and are you still using Mac OS X 10.6.8?
    You need OS X 10.7.5 "Lion" or later, or an iOS device, to configure an 802.11ac Time Capsule:
    http://manuals.info.apple.com/MANUALS/1000/MA1645/en_US/airport_time_capsule_802 11ac_setup.pdf
    See page 12.

  • How to find the data loaded from r/3 to bw

    hi
    how to find the data loaded from r/3 to bw is correct . i am not able to find which feild in the query is connected to which feild in the r/3 . where i am geting the data from r/3 . is there any process to find which feild  and table the data is comming from . plz help
    thanks in advance to u all

    Hi Veda ... the mapping between R/3 fields and BW InfoObjects should take place in Transfer Rules. Other transformation could take place in Update Rule.
    So you could proceed this way: look at InfoProvider Data Model and see if the Query does perform any calculation (even with Virtual keyfigures / chars). Than go back to Update Rules and search for other calculation / transformation. At least there are Tranfer Rule and eventually DataSource / Extraction Enhancements.
    As you can easily get there are many points where you have to look for ... it's a quite complex work but very usefull.
    Once you will have identified all mappings / transfromation see if BW data matchs R/3 (considering calculations ...)
    Good job
    GFV

  • How to find the form name  from VA02 T.code

    how to find the form name  from VA02 T.code

    Hi Rajyam,
    I guess you are looking out for the formname which prints sales related documents.
    If this is what you want,then go to the T-code NACE and select the option K1Sales activities and click on the Output Types button on the top.The new window has all the types of Output types listed.Select the most appropriate and double click on the Processing routines button in the left side screen.
    The new window lists the program names and the forms associated with that output type.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • HT201240 how can I find the su - root password on my mac?

    how can I find the su - root password on my mac?

    Chances are you could have also done
    sudo su -
    which would now make you 'root' until you exit.  You could do all your setup running as root.
    Very few if anything actually needs the root password to use root privileges, and having a system where root cannot be directly logged into, is a safer system.

  • Finding the Message Category from Message Type ( TXN - NOTIF_CREATE )

    Dear All,
    According to my requirement , I need to find the Message Category , from the Message Type.
    As for Example :
    SLF1 is the Message Category for Message Type SLFN .
    I have got a F.M "SUP_STSUP_READ_PROCESS_TYPE" which gives the Message Type , now i need the Corresponding
    Message Category.
    We can also see the Message Type in Transaction : NOTIF_CREATE.
    Please Help.
    Thanking You All.

    Dear All,
    According to my requirement , I need to find the Message Category , from the Message Type.
    As for Example :
    SLF1 is the Message Category for Message Type SLFN .
    I have got a F.M "SUP_STSUP_READ_PROCESS_TYPE" which gives the Message Type , now i need the Corresponding
    Message Category.
    We can also see the Message Type in Transaction : NOTIF_CREATE.
    Please Help.
    Thanking You All.

  • BW3.5 : Busness content == Need to find the source cube from an web item

    Hi,
      While executing( preview) an iview  of the predelivered CRM business package( com.sap.pct.crm.slsAnalyt.spa.Customer iview for Sales manager), in Enterprise Portal, I get an error " Error loading template 0TPL_0CRM_SM_CUSTOMER".
      I can see this perticular web template in BW and when trying to activate this by tranferring into the content windows it brought thousands of other objects( even when I selected 'Only necessary object'). I am not sure whether I should go ahead with the activation.
      I would like to know what is the relationship between a cube and a web template and how to findout the related cube from the template?
      Also is it possible to activate only certain webtemplates only for queries of a perticular cube?
      Thanks
    Arunava

    Thanks Dinesh,
    \ BW3.5 : Busness content ==>Need to find the source cube from an web item
    Posted: Nov 2, 2005 10:00 PM        Reply      E-mail this post 
    Thanks Dinesh
    I would still like to know the relationship between a cube and a web template and how to find out the related cube( or query etc) from the template?
    Please let me know,
    Thanks
    Arunava

  • May i ask how to find the history website from safari in the new Mavericks?

    may i ask how to find the history website from safari in the new Mavericks?

    Choose Show All History from the History menu.
    (93509)

  • How to find the tomcat path from registry?

    Hi,
    How can I find the tomcat path from registry?
    please tell me.
    Thanks
    Gaurav Agrawal

    gauravjlj wrote:
    listen,
    I'm about to create a exe which will do these things.....
    1. first install java
    2. install tomcat
    3. install mysql
    4. deploy my web application with out use of tomcat manager
    first three steps I have done with the help of installer maker. let assume that my tomcat has been installed. but now please tell me how can I deploy my web application.
    that's why I need the tomcat path.
    please tell me.Well, if you've just installed Tomcat you do know where it is so what's the problem? Why not, in fact, include your application in the tomcat directories as you install them? That's all there is to installing tomcat, installing the directories, setting %JAVA_HOME% and (possibly) running the service.bat file.

  • How to find the costliest course from the below table.

    dear experts,
    please help me to find the costliest course from the below data
    COURSE         CCOST
    pgdca           4500
    dca             7200
    mca            22000
    dcp             5000
    pgdca           4500
    dap             6200
    dcap            5200
    hdcp           14000
    pgdca           4500
    dca&p          11000

    Then read the FAQ for how to post a question on the forum.
    1. You didn't say anything about using an Oracle database or what your 4 digit version of Oracle is.
    2. You didn't provide a table name, the table DDL or insert statements to create the table and data
    3. You didn't post the queries that you tried to write and tell us whether they work or not.
    4. You didn't tell us when this homework assignment is due or that you needed a query.
    This isn't a coding service. The forum is to help you with questions or issues you are having with YOUR queries.
    No one can write a query without having a table. If you want help post the info requested above.

  • UDF for Find the First letter from Input

    Hi Masters,
    I want find the first letter from input, Can any one help me on this..UDF or any solution.
    Ex: E2HB means - Alpha Letter is the first
    Ex: 1234 means - Number is the first
    Thanks,
    Siva

    Hi Siva,
                I just want to clarify this doubt, you want the first character of the string you pass to the UDF i.e if input="E2HB"  output="E"   and if input="1234"   output="1". If my assumption is correct you can try the UDF "firstChar" I have shown below this gives exactly the output you want
    public class firstLetter {
         public static String firstChar(String s)
              if(s==null)
                   return null;
              if(s.equals(""))
                   return s;
              String t="";
              t+=s.charAt(0);
              return t;
         public static void main(String[] args) {
              String s1="E2HB",s2="1234";
              s1=firstChar(s1);
              System.out.println(s1);
              s2=firstChar(s2);
              System.out.println(s2);
    Regards
    Anupam

  • Find the log files from EIM?

    Please, tell me where I can find the log files from EIM.
    I have already checked the directory /siebel/siebsrvr/log but the files there are old.
    Regards, Slavi

    You need to configure the log level and events for the EIM component.
    You can go to Administration Server Configuration > Servers and choose the EIM Component.
    Good Luck.
    Antonio
    BExpert, Brazil

  • Finding the smallest value from an array

    Hi there :)
    I started learning Java a few days ago and have now run into my first problem :p
    I am using Netbeans on Mac OS X.
    I need to find the smallest value from an array. So far I've had no luck. Any suggestions would be fantastic.
    The code so far:
    * Math Problems
    * Created on May 4, 2007, 10:54 AM
    * PROJECT 1: - IN PROGRESS
    * Create a program that allows you to create an integer array of 18 elements with the following values
    * 3, 2, 4, 5, 6, 4, 5, 7, 3, 2, 3, 4, 7, 1, 2, 0, 0, 0
    *  - The program computes the sum of elements 0 to 14 and stores it in element 15                              // COMPLETED
    *  - The program computes the average and stores it in element 16                                              // COMPLETED
    *  - The program finds the smallest value from the array and stores it in element 17
    * PROJECT 2: - TO DO
    * Write a program that accepts from the command line and prints them out. Then use a for loop to print
    * the next 13 numbers in the sequence where each number is the sum of the previous two. FOR EXAMPLE:
    *  - input>java prob2 1 3
    *  - output>1 3 4 7 11 18 29 47 76 123 322 521 843 1364
    * PROJECT 3: - TO DO
    * Write a program that accepts from the command line two numbers in the range from 1 to 40. It then
    * compares these numbers against a single dimension array of five integer elements ranging in value
    * from 1 to 40. The program displays the message BINGO if the two inputted values are found in the array
    * element. FOR EXAMPLE:
    *  - input>java prob3 3 29
    *  - output>Your first number was 3
    *  -        Your second number was 29
    *  -        Its Bingo!  // This message if 3 and 29 are found in the array
    *  -        Bokya!      // This message if 3 and 29 are not found in the array
    *  -        The array was 7 5 25 5 19 30
    * PROJECT 3 EXTENSION: - OPTIONAL
    * Generate the array of 5 unique integers using random numbers
    package mathproblems;
    * @author Mohammad Ali
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
            int A[]={3,2,4,5,6,4,5,7,3,2,3,4,7,1,2,0,0,0};
            int O = A.length - 3;
            int B = A[0] + A[1] + A[2] + A[3] + A[4] + A[5] + A[6] + A[7] + A[8] + A[9] + A[10] + A[11] + A[12] + A[13] + A[14];
            A[15] = B;  // Stores the sum of the integers in A[15]
            int C = B / O;
            A[16] = C;  // Computes and stores the average in A[16]
            int D = 101;
                if (A[0] < A[1]) { D = A[0]; }
                else { D = A[1]; }
                if (A[1] < A[2]) { D = A[1]; }
                else { D = A[2]; }
            System.out.println("There are " + O + " numbers in the Array");
            System.out.println("Those numbers add up to " + B + ".");
            System.out.println("The average of those numbers is " + C + ".");
            System.out.println("The smallest value in the array is " + D + ".");
    }The code is incomplete, but it works so far. The problem is I know there must be an easier way. SAVE ME :)

    OK :)
    Just thought I should show you the output as to help anyone else with the same problem:
    * Math Problems
    * Created on May 4, 2007, 10:54 AM
    * PROJECT 1: - IN PROGRESS
    * Create a program that allows you to create an integer array of 18 elements with the following values
    * 3, 2, 4, 5, 6, 4, 5, 7, 3, 2, 3, 4, 7, 1, 2, 0, 0, 0
    *  - The program computes the sum of elements 0 to 14 and stores it in element 15                              // COMPLETED
    *  - The program computes the average and stores it in element 16                                              // COMPLETED
    *  - The program finds the smallest value from the array and stores it in element 17                           // COMPLETED
    * PROJECT 2: - TO DO
    * Write a program that accepts from the command line and prints them out. Then use a for loop to print
    * the next 13 numbers in the sequence where each number is the sum of the previous two. FOR EXAMPLE:
    *  - input>java prob2 1 3
    *  - output>1 3 4 7 11 18 29 47 76 123 322 521 843 1364
    * PROJECT 3: - TO DO
    * Write a program that accepts from the command line two numbers in the range from 1 to 40. It then
    * compares these numbers against a single dimension array of five integer elements ranging in value
    * from 1 to 40. The program displays the message BINGO if the two inputted values are found in the array
    * element. FOR EXAMPLE:
    *  - input>java prob3 3 29
    *  - output>Your first number was 3
    *  -        Your second number was 29
    *  -        Its Bingo!  // This message if 3 and 29 are found in the array
    *  -        Bokya!      // This message if 3 and 29 are not found in the array
    *  -        The array was 7 5 25 5 19 30
    * PROJECT 3 EXTENSION: - OPTIONAL
    * Generate the array of 5 unique integers using random numbers
    package mathproblems;
    * @author Mohammad Ali
    import java.util.Arrays;
    public class Main { 
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
         public static void main(String[] args) {
                  int A[]={3,2,4,5,6,4,5,7,3,2,3,4,7,1,2,0,0,0};
              Arrays.sort(A);
              System.out.println("The smallest value in the array is " + A[0] + ".");
              int num = A.length;
              System.out.println("There are " + num + " values in the Array.");
              int sum = 0;
              for (int i = 0; i < A.length; i++) {
                   sum+=A;
              System.out.println("Those numbers add up to " + sum + ".");
              double d = (double)sum/num;
              System.out.println("The average value of those numbers is " + d + ".");
    What Iearned:
    1) How to create for loops properly
    2) How to import java.util.Arrays ( =D )
    3) How to get a more accurate average using double instead of int
    4) This forum is the best and has very helpful people 24/7 ( =D)
    Thanks Again,
    Mo.

  • To Find the SAP Query from the tranaction code or the program name

    Hi,
    I have a situation wherein I have to modify the sap query associated with an transaction code.But the problem is that I am unable to find the SAP Query.
    <b>Please let me know how to find the SAP query from the transaction code or the program name.</b>
    Thanks and Regards,
    Rupesh

    Hi Rupesh,
    1 use FM
      RSAQ_DECODE_REPORT_NAME
    2. This is one of the best and easiest way.
    3. It will provide u the following info.
       WORKSPACE
       USERGROUP
       QUERY    
       CLIENT   
    4. Thru TCode U must know the program name first.
       This can be discovered using SE93.
    Hope it helps.
    Regards,
    Amit M.

Maybe you are looking for

  • License Agreements not displayed during Install

    I created and installer in LabVIEW 2011 (64-bit OS with Windows 7).  I added a custom license agreement (rtf) file to my installer and included it as shown below.  The setup.ini includes a reference to the file and I confirmed that the file exists in

  • Illustrator CS6 Freezing

    When i open it up on my imac,it lets me set a new workspace,but wont let me do anything after that,i just get the loading icon and it freezes until i force quit,anybody else having this issue or know how to resolve it without having to do a fresh ins

  • Finding Dmenu's window class?

    Normally I would simply run xprop in a terminal and click on the window in question with the cross hairs. However, for the dmenu  "window" this procedure yields no result. Any idea how I could find dmenu window class so I can style and position it us

  • Clusterware 12.1.0.2.0:  Alert Log is empty

    Hello, After one week working with a cluster initially of two nodes and after 3, I see that my alertrac1.log is empty on all nodes. If we go to the ORACLE_HOME for the GI. [grid@rac1 rac1]$ pwd /u01/app/12.1.0/grid/log/rac1 [grid@rac1 rac1]$ ls -ltr

  • FI error

    1) while passing an entry of Purchase from vendor ..............FB50         It is asking ..............         In co. code ....... , the no. range 19 is missing for the yr 2008        It high light ...........Ref            Where as the purchase a/