How to get the presentation node name at the page title?

Hi,
I am setting the title of any page dynamically at the framework/portal.jsp. In
order to do this, I am doing:
PageState pageState = PortalRenderHelper.getPageState(request);
String pageName = pageState.getDisplayName();
and displaying the page name in the title.
Now, in order to have automated tests work correctly, I have to give a unique
name to all the different presentation nodes. Thus, the title should be something
like pageName:nodeName. How can I do that? Any suggestions?
Thanks in advance.

I think it possible to access that data through embedded java or by creating some custom java function.
If you put this under Java Embedded activity you will recieve the name of the previous activity at runtime.
try {     
IInstanceHandle instance = getLocator().lookupInstanceByConversationId(getConversationId());
IActivityHandle[] activities = instance.listActivities();
addAuditTrailEntry(activities[ activities.length - 1 ].getLabel());
} catch ( Exception e ) {    
addAuditTrailEntry(e.getMessage());
Note: In some situations lookupInstanceByConversationId doesnt work becouse [ i think ] the process is not yet in the db.
Message was edited by:
Bogumil Laska

Similar Messages

  • How to get the page number in the break section?

    Hi expert,
    The user wants the page number came right after the Break group name if the break section contains more than 1 page. E.g.
    ABC Compnay
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 1
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 2
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    CDE Company
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    How to get the page number in section break level?

    Hi Wes
    * Create a Field on the margin.
    * Set its "Source" to "Page Number"/"Physical Page Number".
    * Click "Page Numbering" button.
    * In "Reset At" list box, choose the Repeating frame that surrounds your detail group in the layout.
    This should cause Reports to increment the page number until the "Company" repeating frame resets.
    Regards
    Sripathy

  • How to get the Page Number in CS3 with VB?

    Hi, Everybody
    I use the Visual Basic to read the words and their page number where the Words are at. I want to do it according to Story. Some TextFrame of the Story waw placed in other pages: How can I get the Page number according to the Word that is selected?
    For myStoryCounter = 1 to Document.Stories.Count
    Set myStory = Document.Stories.Item(myStoryCounter)
    For myWordCounter = 1 to myStory.Words.Count
    Set myWord = myStory.Words.Item(myWordCounter)
    myWordContents = myWord.Contents
    Rem ** How to Get the Page Number according to the Word ***
    Next
    Next

    > But I don't understand why Item(1) are set.
    because Word can have more than one parent TextFrame - when split across TextFrames
    only Character have one ParentTextFrame accessed also by ParentTextFrames.Item(1)
    > why Story.TextFrames.Count alway is 0, Is it bug?
    no - it's not bug
    in older IDs - Story.TextFrames collection refer to all TextFrames as containers for Story text
    but in CS3 - collection Story.TextFrames contain all TextFrames inserted as InLine/Anchored objects - same like Story.Rectangles or Story.Ovals
    in CS3 - when you want to refer to TextFrames as containers for Story text - you need to use Story.TextContainers - because now you can link TextFrame and Text-On-Path as Story - Text-On-Path isn't TextFrame
    robin
    www.adobescripts.com

  • How to get the page number according to MarkerID?

    I want to get the page number according to the marker element in fdk. I can get the marktext and markid,How to get the page number according to MarkerID in fdk?

    zhaopeng,
    You need to first get the ID of the paragraph containing the marker (with FP_TextLoc), then get the top-level frame containing the FO_Pgf object (FP_InTextFrame), then get the page containing the FO_TextFrame object (FP_PageFramePage). Here is a function that you can send various objects to in order to get the page ID, including paragraphs (this courtesy of Rick Quatro, originally posted to the Yahoo Framedev list):
    F_ObjHandleT GetPage(F_ObjHandleT oDoc, F_ObjHandleT oObj)
      F_ObjHandleT oFrame = 0;
      IntT iObjType;
      F_ObjHandleT oRow, oCell;
      while(oObj)
        oFrame = oObj;
        iObjType = F_ApiGetObjectType(oDoc, oObj);
        switch(iObjType)
          case FO_SubCol:
          oObj = F_ApiGetId(oDoc, oObj, FP_ParentTextFrame);
          break;
          case FO_Tbl:
          oRow = F_ApiGetId(oDoc, oObj, FP_FirstRowInTbl);
          oCell = F_ApiGetId(oDoc, oRow, FP_FirstCellInRow);
          oObj = oCell;
          break;
          case FO_Row:
          oCell = F_ApiGetId(oDoc, oObj, FP_FirstCellInRow);
          oObj = oCell;
          break;
          case FO_Cell:
          case FO_Pgf:
          case FO_AFrame:
          oObj = F_ApiGetId(oDoc, oObj, FP_InTextFrame);
          break;
          case FO_TextLine:
          case FO_TextFrame:
          case FO_UnanchoredFrame:
          case FO_Arc:
          case FO_Ellipse:
          case FO_Group:
          case FO_Inset:
          case FO_Line:
          case FO_Math:
          case FO_Polygon:
          case FO_Polyline:
          case FO_Rectangle:
          case FO_RoundRect:
          oObj = F_ApiGetId(oDoc, oObj, FP_FrameParent);
          break;
          //endless loop prevention, stops the process when the top-level frame is reached
          default:
          oObj = 0;
          break;
      //if we found the top-level frame, return its page ID, otherwise null
      if(oFrame)
        return (F_ApiGetId(oDoc, oFrame, FP_PageFramePage));
      else return(0);
    ...so, you would do something like this if you have the marker ID:
    F_TextLocT textLoc;
    F_ObjHandleT pageId;
    textLoc = F_ApiGetId(docId, markerId, FP_TextLoc);
    pageId = GetPage(docId, pageId.objId);
    Note: I'm not sure how this handles the case where a paragraph extends across two pages and the marker is located on the second page. My thought is that it might erroneously return the page where the paragraph begins. I don't know how to handle that.
    Russ

  • Get the page title from definition

    Hi, If I have the page definition label, how can I get the page title from jsp page or java class? Thanks

    If the jsp is on a portlet on that page then use
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc/com/bea/netuix/servlets/controls/page/PagePresentationContext.html
    If you want to find out for some other page (i.e. the current page is different from the page you want the title of) then use
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc/com/bea/netuix/servlets/controls/application/DesktopPresentationContext.html
    getPagePresentationContextRecursive...

  • How to get the page FUNCTION NAME?

    Hi All,
    How can I get the page Function Name? I tried below codes but it returns null value.
    <i>pageContext.getPageLayoutBean().getAttributeValue(FUNCTION_NAME)</i>
    Please help. Thanks!

    Sorry guys, i got it now.
    instead of getAttributeValue, use .getPageFunctionName()
    :-)

  • How to get the page numbers of a word/mpp/execl doc using Java?

    Hi,
    I meet a problem in Java programming. I want to get the page numbers of a Word/MPP/EXECL/PDF document. For exmaple, if a PDF docment have 10 pages, I need get the 10 . How to get it using Java?
    Please advise me as soon as possible if you have any good suggestions! Thanks!
    Yin

    There are several good tools that allow you to access COM objects from Java. Here are two of the better ones:
    Bridge2Java
    http://www.alphaworks.ibm.com/tech/bridge2java
    J-Integra
    http://www.linar.com/
    Both of these tools will allow you to access MS Office products (including Word and Excel) via COM interfaces.

  • How to get the page layouts programmatically and create a page for that pagelayout

    how get the page layouts programmatically and create a page for that pagelayout and add webpart
    please help me with da code.Thanks
    adityadugyala

    Hi if your page layouts alreday created then create new page programaticaaly  and apply your page ayouts to that page by coding you can do something like following
    PublishingWeb publishingWeb =
    PublishingWeb.GetPublishingWeb(web);
    PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
    PageLayout layout = layouts[0];
    string pageName =
    "MyPublishingPage5.aspx";
    PublishingPage newPage = publishingWeb.GetPublishingPages().Add(newFolder.Folder.ServerRelativeUrl +
    "/"+ pageName, layout); 
    newPageUrl = web.Url +"/" + newPage.Url;
    newPage.Description = "This my sample publishing page";
    newPage.Title = "My Publishing Page";
    newPage.Update();
    Please follow link
    http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/create-publishing-pages-in-portal-sites-programmatically.aspx
    Please mark answer , if you think answer is helpful or correct.

  • How to get the page request parameters in Command Button code

    Hi everyone,
    I am new to JSF and working on some Command Buttons. I put my java code via Edit Event, it works fine. But I don't know how to get some parameters from HttpServletRequest.
    Can anyone give some guidance? It would be much appreciated.
    Mike

    Thanks a lot for your tip. Unfortunately I could not open the link you provided due to some network issue.
    Yes, I intend to get some parameters from URL. I did try to put your code and get the parameters predefined in the URL, however I got the null returned. By the way, I put the following code in the page source part and it works. Just don't know how to get the value being passed to the command button event code.
    <%
    String userID = request.getParameter("u");
    System.out.println("this is from head - the userID is :: " + userID);
    %>
    Thanks again and hope you could give me further advice.

  • How to get the page count of a tiff image:

    Hi,
      My process takes input (of document type) tiff image. I want to get the number of pages present in the tiff image into one of my process variables.
    How can I get that?
    Thanks,
    kc

    Hi
    I'v tried rennie1's way ,but I only get zero,my code is:
    rs.executeQuery("select count(*) from t_test");
    if (rs.next()) int rowCount=rs.getInt(1);
    I also tried barni's way ,but the method rs.last() and rs.beforeFirst() throw a same Exception
    I tried another way,the code is:
    while rs.next(){
    // Do nothing ,just move the cursour to the last row
    int rowCount=rs.getRow()
    However,the rowCount still equal zero
    Any help would be greatly apprecite!
    note:
    I get connection by DataSource's JNDI name from client, the Server is Weblogic Server 6, the DBMS is Oracle.

  • How to get the page number when click the(Next page) Icon on Tableview

    Hi all,
           I had implemented a tableview in one of the Views that I had implemented for a BSP application. I am using MVC framework.
    Let us assume when we execute the BSP and a table view got 11 pages.
    How I can keep track of the page number when we click the  (Next page, Previous page, Bottom , Top) Icons on my tableview . Is there any attribute willstore that  corresponding page number of the tableview when we click the corresponding Icon's??
    I had checked both CL_HTMLB_TABLEVIEW and CL_HTMLB_EVENT_TABLEVIEW Classes and i don't find any attribute.
    Any help will be appreciated.
    Thanks in advance.
    Thanks,
    Greetson

    Hi Greetson,
      I was thinking to write a weblog about that.
      But now I would like to have your opinion:
      I coded a generic method in my main controller (but you could also insert it in the application class) that save the firstvisible row in the class  me->firstvisiblerowlist (that is a table)
      DATA: l_firstvisiblerowlist TYPE zmmsp_tableview_1st_visi_row.
      DATA: ff  TYPE ihttpnvp,
            ffs TYPE tihttpnvp.
      me->request->get_form_fields( CHANGING fields = ffs ).
      LOOP AT ffs INTO ff.
        IF ff-name CP 'f*visiblefirstrow'.
          READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerowlist WITH KEY name = ff-name.
          CASE sy-subrc.
            WHEN 0.
              l_firstvisiblerowlist-name  = ff-name.
              l_firstvisiblerowlist-value = ff-value.
              MODIFY me->firstvisiblerowlist FROM l_firstvisiblerowlist INDEX sy-tabix.
            WHEN 4.
              IF sy-tabix = 0.
                l_firstvisiblerowlist-name  = ff-name.
                l_firstvisiblerowlist-value = ff-value.
                APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
              ELSE.
                l_firstvisiblerowlist-name  = ff-name.
                l_firstvisiblerowlist-value = ff-value.
                INSERT l_firstvisiblerowlist INTO me->firstvisiblerowlist INDEX sy-tabix.
              ENDIF.
            WHEN 8.
              l_firstvisiblerowlist-name  = ff-name.
              l_firstvisiblerowlist-value = ff-value.
              APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
          ENDCASE.
        ENDIF.
      ENDLOOP.
    Than you have to provide a generic method to read the firstvisiblerow for each tableview
    GET_FIRSTVISIBLEROW
    *IM_TABLENAME
    *RE_VALUE
      DATA: l_firstvisiblerow  TYPE zmmsp_tableview_1st_visi_row.
      READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerow WITH KEY name = im_tablename.
      IF sy-subrc = 0.
        re_value =  l_firstvisiblerow-value.
      ELSE.
        re_value =  1.
      ENDIF.
    And in the DO_REQUSET of each controller you could write something like:
    * Paginator
      DATA: l_tab1_visiblefirstrow TYPE sytabix.
      l_tab1_visiblefirstrow = o_bsp_main->get_firstvisiblerow( 'f019id_tab1_visiblefirstrow'    ).
    As usual pass the value to the view via:
      o_page->set_attribute( name = 'tab1visiblefirstrow' value = l_tab1_visiblefirstrow ).
    Did you get it?

  • How to get the page break preview in java

    I have an in house report building utility using gridbaglayouts. My reports are coming pretty good but i am unable switch the grids page wise. I tried using the graphics but failed as it cuts the grid in between. The grid bag layout does not return and size(height and width) for the grids. so theoption of getting the heights of grids will not work. Please give me the solution

    j0o wrote:
    System.out.println("Class Name: " + new Exception().getStackTrace()[0].getClassName() +
    "/n Method Name : " + new Exception().getStackTrace()[0].getMethodName() +
    "/n Line number : " + new Exception().getStackTrace()[0].getLineNumber());
    I pointed the OP at this approach yesterday in one of his multi-posts. I still have not been given my Dukes!

  • How to get the  page count in XML Publisher Report

    Hi Team,
    I am generating one xml report. I want to get the total Page count in XML publisher report. This page count is depends on the input Parameters at runtime. How to get this total page count on the runtime dynamically.
    Best Regards
    Sri

    there is some seeded variable available please read xml publisher developer user guide

  • How to get the page number's i nthe xml output

    Hi All,
    Greetings!!!!!!!!!!!!!!!!!!!!!!
    Need help to show the page number in this format 1/1 & 1/2.
    How to get this by defining a variable and getting it randomly.
    Please help...
    Thanks
    Rajesh
    Edited by: Badsha on Mar 26, 2010 12:20 AM

    Hi,
    Thanks for your reply.
    code works fine but it calculates total pages and shows page number as 1/2...
    But my requirement is i am converting AR remittance report to xml. and output will have diff outputs for a check date based on the supplier.
    For Ex..pdf output for check date '01-jan-2010' will have 5 pages firts two pages belong to same supplier(for this i want page number to be shown as 1/2 & 2/2) and rest of the pages belong to different supplier(for this i want page number to be shown as 1/1..)
    Please help to achieve this in my output.
    Thanks
    Rajesh

  • How to get the Figure Title to appear below the graphic, not above

    I have valid XML that I am importing into FrameMaker just for printing.
    My <figure> element contains a <title> and a <graphic> element. The graphic comes in within an anchored frame, appearing after the figure title. The figure title needs to be below the graphic. How do I get this to work? I read a couple of threads that used tables to wrap the graphic & the title and to make the title appear below, but that was during an export function to XML, not an import. Short of editing the DTD, EDD & all of the XML data to have the graphic element structure come before the title within <figure>, how would this be accomplished? Thanks in advance.

    You're saying the xrefid should go in the <title> instead of in <figure>, but where in what document do I point to that ID?
    First, to cross-reference an element, the target element has to have an ID attribute. You do not have to expicitly put a value into that attribute. When you create the cross-reference in FrameMaker, you list the elements, select the title element, and select the particular instance of that element as the target. FrameMaker adds a value to the target ID attribute for you.
    Second, FrameMaker basically treats every element as a paragraph unless the EDD specifically states that it is to have character formatting. When you create a cross-reference to an element, the TEXT of the element is the text of the first paragraph IN the element. In your case, the graphic element is the first paragraph inside the figure element; it has a phantom (blank) paragraph above the graphic to hold the graphic marker. Then the title element is the second paragraph in the figure element. So, when you reference the figure element, the text of the first paragraph inside it is blank.
    Third, the same applies to autonumbering. If the cross-reference is to show the autonumber and you target the figure element, then the first paragraph in the figure is the graphic element which has that blank paragraph above it. Your EDD does not treat apply formatting, that is the autonumbering to the graphic element. Hence, the autonumbering does not display in the cross-reference. FrameMaker has no way to dig down into the figure element and extract autonumbering from its second child element. Thus, you need to target the title element itself.
    Rereading your post, I may not be actually answering your questions, but maybe this will clear up a few things.
    In the EDD, I have:
    Element (Conatiner): title
    Text format rules
    1. If context is: {notfirst} < subfig
        Use paragraph format: subfigs
        Else, if context is: {first} < subfig
        Use paragraph format: subfig
    2. If context is {only} < figure
        Use paragarph format: figuretitle
    Element (Container): figure
    Text format rules
        Element paragraph format: figure
    Element (CrossReference): xref
    Initial cross-reference format
    1. If context is: [type="figure"]
        Use cross-reference format: figure
    You do not give an example of how you are using the subfig element. But there is a problem with the title element in a figure element. The context {only} < figure means "the only child element in the figure element". This will NEVER be satisfied because title is not the only element in figure; figure also has a graphic element. NOTE {only} means only ELEMENT NOT only TITLE element. This confused me when I started creating EDDs.
    NOW, if I assume the subfig structure should be something like:
    <figure>
    <subfig><graphic/><title></subfig>
    <subfig><graphic/><title></subfig>
    <subfig><graphic/><title></subfig>
    </figure>
    Then the context {first} < subfig is NEVER satisfied because title is NEVER the first element inside subfig but {notfirst} < subfig is always true, because title is never the first element inside subfig. Hence, all title elements inside subfig elements are tagged with the subfigs tag, never subfig.
    I am thinking the contexts should be:
    subfig {first} < figure
    subfig {notfirst} < figure
    Remember these are contexts for the title element. The first is a title element in the first subfig element in a figure element; and the second is a title in a subfig that is not the first element in a figure element.
    Figure 1-1. ABCD                     <-- figuretitle
    Figure 1-2. EFGH (Sheet 1)     <-- subfig
    Figure 1-2. EFGH (Sheet 2)     <-- subfigs
    Figure 1-2. EFGH (Sheet 3)     <-- subfigs
    For instructions A - D, see Figure 1-1. For instructions E - H, see Figure 1-2.
    I am assuming you are manually entering Sheet 1, Sheet 2, etc in the title elements of each subfig element. It is not clear from your posts where the autonumber is displayed. Is it displayed in front of the title or above the graphic? If the title element carries the autonumbering, then you need to target the title element and not the figure element. If the autonumber is in that "blank" line above the graphic, then you can target the figure element because its first paragraph displays the autonumber.
    I believe I have gone on way too much, but hope something in the above is the answer to your problem. See if any of this helps and then post again. Maybe we can get this figured out...pun intended.
    Van

  • How to get the page Count of an .epub document

    How does the page is counted for an ebook in Adobe Digital Editions in .epub format and where the total page count is saved?

    This is not exactly what I'm talking about. This is what is written about this suite in the documentation:
    This suite allows you to activate, access, and modify crop areas in Illustrator documents.
    Illustrator maintains a list of crop areas in a document, and these functions allow you to iterate through the list. The active crop area is the one returned by AIDocumentSuite::GetDocumentCropBox(), which is displayed with crop marks, and which is used when saving or exporting to a file.
    That is, using this suite, we can select crop box of the document (area inside crop marks). I choose this area by using the function SetDocumentCropBox or using actions - PlayActionEvent( "adobe_makeCropMark",...
    And how choose a page size of the document, which is selected through menu item Page Setup? Standard function SetDocumentSetup not works - as stated in the documentation, it can be called only in documents opening. :-(

Maybe you are looking for

  • In Thunderbird, I cannot send email. I am asked to enter an email address in Mail and Newsgroup Account settings but when I click on this option, nothing opens.

    I can connect to Thunderbird and receive email. However, I cannot send emails. When I press send (either from replying to an email or entering an email address manually) I get the following error message: Sending of message failed. No sender specifie

  • Looking for a voice memo app with folders

    Looking for a voice memo app with folders I'm trying to find a simple voice memos app that allows me to save the voice memos in folders right on the phone, and have them backed up to my desktop when I sync. I used to use Recorder Pro by Bear-Software

  • Install R12 on vmware

    I want to install R12 vision on vmware running windows 2003. I want to know that while installation it asks for "Do you want to use a virtual hostname"--here do i have to specify "yes"? Thanks

  • Images in emails don't show

    In Mail on OSX 10.4.6 macintel, Images in received html messages do not load. In preferences the "display remote images in html messages" is checked. Any idea what the problem is? Thanks

  • Give me best one

    Hi Friends, I have following query . Can you pls give best one in performance point of view and tell me why also.. *To fetch Material to BoM link related data SELECT matnr stlnr FROM mast        INTO TABLE it_mast        FOR ALL ENTRIES IN it_fp