Displaying Context Text????

Hi,
Would really appreciate some help on this one.
I'm simply trying to pass a parameter from one page to another and to display it on the banner region at the top of a page. (Similar to passing context from one canvas to another using :block.item for you ex-Oracle forms programmers).
I can't seem to work out the correct technique for actually displaying the text in the banner region. I've looked at custom item types and pl/sql but it's not really clear. I don't really mind how I do it (ie write a query and get it from the database, extract it from the url etc).
Help please!
Thanks in advance
Martin

The easiest way to do this is probably by using a dynamic HTML page. You need to do following:
1) Create a dynamic HTML page with the following HTML content:
<oracle>
  begin
    htp.p(:myparam);
  end;
</oracle>Make the myparam bind variable public.
2) Add the portlet to a portal page.
3) Enable the page parameters & events for the page group, containing your portal page.
4) Create a page parameter, called pageparam.
5) Map the value of the pageparam to your dynamic HTML page parameter, myparam.
6) Pass the pageparam to the page, for example by appending the following to the page URL: pageURL&pageparam=myvalue
You can obviously utilize the parameter passing PDK services if you build your portlets programmatically (Java or PL/SQL).
Hope this helps,
Peter

Similar Messages

  • How to display Formatted text in adobe form

    In adobe form, I want to display the text which is inputed by formatted text edit in WD ABAP application.
    It is always displayed as plain text like '<p>this is test text.</p>'. I have set the attribute Data Format to XHTML, Field Format to Rich Text for the Text Field in adobe form. But it doesn't work.
    How to display these formatted text?
    Thanks and Best Regards,
    Jun

    Hi Juergen,
    I found Your blog and found it  really interesting... though I was not able to use it: I (like Jun Li is asking, I guess) need to use a dynamic text, containing formatting informations (according the xhtml syntax).
    I tried to pass it to the form by an ABAP-dictionary based interface and by means of the context (in a webdynpro page), but both tries failed.
    Some suggestion will be greatly appreciated.
    Thankyou
    Simone

  • My iPhone 5 won't display smart text options.

    My iPhone 5 won't display smart text. It did when I initially downloaded the new OS, now those options don't appear at all. Did I click something to make them disappear?
    I went into Settings to see if there was a component of it within Messages. I don't see anything.
    Thoughts please.....
    Thanks much
    Ginger

    Awwww......that's it....the dash! I tapped it. Tried to drag it up/down and it didn't move. Now I swiped and it's back!
    So I need to remember to drag up/down and now swipe.....
    Thanks much!
    Ginger

  • Is there any possible to display the text in big font in screen painter

    HI all!
    i want to display the text in the large size in the text field in the screen painter in the odule pool programing.Is there any possible.What i have to do in the screen painter to display the text in the large size.Also is there any possible to put the color for the text.Give me reply

    HI
    CALL METHOD o_dyndoc_id->initialize_document
          EXPORTING
            background_color = cl_dd_area=>col_tree_level1.
        DATA : dl_text(255) TYPE c.  "Text
        CALL METHOD o_dyndoc_id->add_text
          EXPORTING
            text         = 'Flight Details'
            sap_style    = cl_dd_area=>heading
            sap_fontsize = cl_dd_area=>large
            sap_color    = cl_dd_area=>list_heading_int.
    * Display document
        CALL METHOD o_dyndoc_id->display_document
          EXPORTING
            reuse_control      = 'X'
            parent             = cont
          EXCEPTIONS
            html_display_error = 1.
        IF sy-subrc NE 0.
        ENDIF.
    by using these methods you can achieve i hope..
    have a good day.
    regards
    sarves

  • How to display help text for Region in a page having more than one region

    Hi all,
    I want to display help text for each region in my page. I have 5 regions in my page.
    I have a big help text for each of my region so can any easy way is there to put the help text for each region more than 10 lines .I tried lot by searching forums but not able to implement. any document is there then please let me know.
    Thanks in advance,
    Amit

    i mean either if we click the region title name it should display some help text of near about 10 lines in a popup window.
    Or on moseover whenever we will put the cursor into the region title then it should displat the help text message of line 10.
    Hope you will get my qustion well.
    Thanks,
    Amit

  • How to display the  text in a classical report before top-of-page?

    Hi all,
    I am developing a classical report with top-of-page because i want to display the texts of cloumns  even users scroll down the output.
    But here the problem is i have to display a text and selection screen values in the ouput ,Before this top-of-page. But i couldn't find the way to do it.
    Please help me on solving this problem?
    Thanks,
    Vamshi.

    Hi Vamsi,
    whenever there is write statement and you are going to display some thing the system checks for the TOP-OF-PAGE and we are helpless here
    so declare your heading in the TOP-OF-PAGE only
    THIS is SAP provided way of the SYSTEM bahaviour
    Regards
    ramchander Rao.k

  • HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS

    HI,
       HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS?

    in ur script main window
    /: IF &TTXSY-PAGE& = 15.              
    ur text or standard text           
    /: ENDIF.                             
    use this.
    hope it helps if any issues revert back

  • How to display long text in smartforms

    Hi experts,
    Iam trying to display long text into smartforms.I got the long text into ITAB frm database
    in the abap program.In the form interface how to define the variable?In the long text i have 6 lines.
    points guaranteed
    cheers
    kaki

    Kaki,
    Delcare a table and getting the LONG TEXT is not the right way of doing this.
    You create a TEXT object and change the TYPE to INCLUDE TEXT. Once that is done all you have to do specify the parameters of your long text - TEXT ID, TEXT OBJECT and TEXT NAME. These are the same parameters that you use for READ_TEXT funciton. You don't have to fetch the text manually, it happens automatically.
    Make sure this is a part of the main window as this might run into multiple pages.
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • How to display Long text in a JLabel with multiline??

    Hi,
    Suppose I have a label that displays a long text....
    ""This is an example label that displays long text, how to break the line????.........""
    how to display it like below with one label?
    ""This is an example label
    that displays long text, how
    to break the line????.........""
    Thanks

    so basically do this
    JLabel myLabel = new JLabel();
    String theText = "<html>This is an example label<br>
                                  that displays long text, how<br>
                                  to break the line????.........</html>";
    myLabel.setText(theText);Obivously, u dont have to use a separate string, u could just call setText or pass it into the JLabel constructor, i just separated it to make it easier to see what your supposed to do.
    GOod Luck

  • How to display Long text in alv output

    Hi,
    I have developed an ALV report.It is displaying the output.
    There is another requirment for alv output text field as below
    From the long text fields show only the first 20 characters and afterwards the long text icon. If the icon is clicked open the long text display screen.
    Please give your suggestion how to work on this requirement.
    Thanks in advance

    Hi,
    Create a hotspot for the long text column of ALV.
    When user clicks on the hotspot, handle the event to display long text screen.
    You may refer sample program of hotspot ALV :
    Goto SE38
    Type BCALV*
    Click F4
    search for HOTSPOT or EVENTS & you will get a sample program.
    Best regards,
    Prashant

  • How to display long text in alv

    Hi ,
    I need to display the long text of particular object on ALV, with 30 char each line .
    I have long text in one internal table, master table have one to maany relation with longtext table and long text contains 120 character in each line.
    i need to display long text using 30 char in each line on alv. could you please suggest the soution ????
    format is like
    ponumber date         longtext 
        1234    03/04/05   this is PO is created
                                  for materail which have
                                  shortage in plant.

    hope u r expecting this..
    optimize = 'X'
    if u use OUTPUTLEN it is fixed size for that specific field, and also it reflects for next fields, to avoid that again have to mention OUTPUTLEN = 'X' for next field.
    With OPTIMIZE = 'X'  it will adjust based on the size.
    regards...
    santhosh reddy
    Message was edited by:
            Santhosh Reddy

  • Using xsl stylesheet with List View Web Part to display custom text

    Hi 
    i have an xsl stylesheet with sharepoint listview webpart. The list view shows some items based on a filter. I want to display custom text such as "No Items" when there are zero items in the list view using the xsl stylesheet. How do i achieve
    this. I have spent hours searching but couldnt find the exact answer. Please help me out. I am a light user not a hard core developer so I dont use Visual Studio. Thanks in advance

    Hi 
    I have customised the list view webpart using a custom xsl file by including it in the xsl link of the list view webpart. So i think i need to include the condition in the xsl file itself else it wont work. Since the list view webpart isnt using the default
    xsl. Please let me kknow if you have any idea about including a condition in xsl to check if there are not items in view. 
    The code of the xsl is included below.
    <!--
    This section is the set up and can be used at the top of any external XSLT stylesheet file
    -->
    <xsl:stylesheet
    xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
    version="1.0"
    exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema">
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
    <table>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowview"></xsl:call-template> 
    </xsl:for-each>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
        <tr>
      <td><img height="78" width="60"><xsl:attribute name="src"><xsl:value-of select="@Photo"/></xsl:attribute></img></td>
        <td>
        <table style="margin-left:10px;">
        <tr><td><xsl:value-of select="@FullName"/></td></tr>
        <tr><td><xsl:value-of select="@DOBinWords"/></td></tr>
        </table>
        </td>
      </tr>
    </xsl:template>
    </xsl:stylesheet>

  • How to display  LONG TEXT STRING in Module Pool Screen ?

    Hi Experts,
    I want to display long text string, on screen designed through module pool(SE51). I tried to display through input/output field , but it displays it in SINGLE LINE and i have to scroll all through to view all string.
    I want to display it in rectangular format . It doesnt allow me to set HEIGHT of component.
    Please provide solution.
    Thanks in advance.
    Regards
    Deepak

    This is the program where u can get the WA_THEAD from other program like report and trying to display and modifying that text. U can do instead of WA_THEAD u can generate here itself and use also
    *& Module pool       ZMP_LTEXT                                         *
    PROGRAM  ZMP_LTEXT                               .
    TABLES: STXL.
    *&      Module  STATUS_9000  OUTPUT
    MODULE STATUS_9000 OUTPUT.
    CONSTANTS:line_length type i value 132.
    DATA:g_editor type ref to cl_gui_textedit,
         g_editor_container type ref to cl_gui_custom_container,
         CONT1 type scrfname value 'CONT1',
         g_repid like sy-repid,
         g_ok_code like sy-ucomm,
         g_mytable(132) type c occurs 0,
         g_mycontainer(30) type c ,
         v_result(256) type c,
         g_head like thead,
         it_line type table of tline with header line,
         wa_stxl type stxl.
    DATA : BEGIN OF IT_THEAD1,
           ICON TYPE ICON-ID.
           INCLUDE STRUCTURE STXL.
    DATA : END OF IT_THEAD1.
    DATA : IT_THEAD LIKE TABLE OF IT_THEAD1,
           WA_THEAD LIKE LINE OF IT_THEAD.
    IMPORT WA_THEAD FROM MEMORY ID 'ABCD'.
    select SINGLE * from STXL into wa_stxl
                     where tdname = '00006000156500000002'.
    SELECT SINGLE * from STXL into wa_stxl
                      where tdname = WA_THEAD-TDNAME
                      AND TDID = WA_THEAD-TDID
                      AND TDOBJECT = WA_THEAD-TDOBJECT
                      AND TDSPRAS = WA_THEAD-TDSPRAS.
    IF SY-SUBRC NE 0.
    MESSAGE 'NO RECORD EXIST' TYPE 'E'.
    ENDIF.
    MOVE-CORRESPONDING WA_STXL TO G_HEAD.
    SET PF-STATUS 'STATUS'.
    SET TITLEBAR '001'.
      if g_editor is initial.
         CREATE OBJECT G_EDITOR_CONTAINER
           EXPORTING
            PARENT                      =
             CONTAINER_NAME              = CONT1
            STYLE                       =
            LIFETIME                    = lifetime_default
            REPID                       =
            DYNNR                       =
            NO_AUTODEF_PROGID_DYNNR     =
           EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5
             others                      = 6.
         IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
         CREATE OBJECT G_EDITOR
           EXPORTING
            MAX_NUMBER_CHARS       =
            STYLE                  = 0
       WORDWRAP_MODE          = cl_gui_textedit=>wordwrap_at_fixed_position
    for to fix number of characters in row to 132 characers
             WORDWRAP_POSITION      = line_length
             WORDWRAP_TO_LINEBREAK_MODE = cl_gui_textedit=>true
    for the word to break to next line if it don’t fit in line
            FILEDROP_MODE          = DROPFILE_EVENT_OFF
             PARENT                 = G_EDITOR_CONTAINER
            LIFETIME               =
            NAME                   =
           EXCEPTIONS
            ERROR_CNTL_CREATE      = 1
            ERROR_CNTL_INIT        = 2
            ERROR_CNTL_LINK        = 3
            ERROR_DP_CREATE        = 4
            GUI_TYPE_NOT_SUPPORTED = 5
             others                 = 6  .
         IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
      REFRESH g_mytable.
         MOVE: WA_THEAD-TDNAME TO STXL-TDNAME,
               WA_THEAD-TDID TO STXL-TDID,
               WA_THEAD-TDOBJECT TO STXL-TDOBJECT,
               WA_THEAD-TDSPRAS TO STXL-TDSPRAS.
        CALL FUNCTION 'READ_TEXT'
        EXPORTING
        CLIENT                        = SY-MANDT
          ID                            = wa_stxl-tdid
          LANGUAGE                      = wa_stxl-tdspras
          NAME                          = wa_stxl-tdname
          OBJECT                        = wa_stxl-tdobject
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
      IMPORTING
        HEADER                        =
        TABLES
          LINES                         = it_line
      EXCEPTIONS
        ID                            = 1
        LANGUAGE                      = 2
        NAME                          = 3
        NOT_FOUND                     = 4
        OBJECT                        = 5
        REFERENCE_CHECK               = 6
        WRONG_ACCESS_TO_ARCHIVE       = 7
        OTHERS                        = 8
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LOOP AT IT_LINE INTO V_RESULT.
       APPEND V_RESULT TO G_MYTABLE.
    ENDLOOP.
    CALL METHOD G_EDITOR->SET_TEXT_AS_R3TABLE
       EXPORTING
         TABLE           = G_MYTABLE
       EXCEPTIONS
         ERROR_DP        = 1
         ERROR_DP_CREATE = 2
         others          = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
       endif.
    ENDMODULE.                 " STATUS_9000  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    MODULE USER_COMMAND_9000 INPUT.
    CASE SY-UCOMM.
    REFRESH G_MYTABLE[].
    REFRESH IT_LINE[].
    CLEAR V_RESULT.
      WHEN 'SAVE'.
         CALL METHOD G_EDITOR->GET_TEXT_AS_R3TABLE
          EXPORTING
            ONLY_WHEN_MODIFIED     = FALSE
            IMPORTING
              TABLE                  = G_MYTABLE
            IS_MODIFIED            =
          EXCEPTIONS
            ERROR_DP               = 1
            ERROR_CNTL_CALL_METHOD = 2
            ERROR_DP_CREATE        = 3
            POTENTIAL_DATA_LOSS    = 4
            others                 = 5
         IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
    LOOP AT G_MYTABLE INTO V_RESULT.
       APPEND V_RESULT TO IT_LINE.
    ENDLOOP.
    CLEAR V_RESULT.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            CLIENT                = SY-MANDT
            HEADER                = G_HEAD
            INSERT                = ' '
            SAVEMODE_DIRECT       = 'X'
          OWNER_SPECIFIED       = ' '
          LOCAL_CAT             = ' '
        IMPORTING
          FUNCTION              =
          NEWHEADER             =
          TABLES
            LINES                 = IT_LINE
        EXCEPTIONS
          ID                    = 1
          LANGUAGE              = 2
          NAME                  = 3
          OBJECT                = 4
          OTHERS                = 5
       IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    REFRESH G_MYTABLE[].
    REFRESH IT_LINE[].
    CLEAR V_RESULT.
    WHEN 'BACK' OR 'CANCEL' OR 'EXIT'.
    LEAVE TO SCREEN '0'.
    *CALL SCREEN '0'.
    WHEN OTHERS.
    ENDCASE.
    *G_OK_CODE = SY-UCOMM.
    *CLEAR SY-UCOMM.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT

  • Javascript not working with 'Display as Text (does not saves state)'

    Hi,
    We have these following items in P3 of our application,
    P3_EDIT_ACCOUNT Display as Text (saves state)
    P3_USEFUL_LINKS Display as Text (saves state)
    P3_LAST_APPROVED Display as Text (saves state)
    P3_ARCHIVES Display as Text (saves state)
    And we are initializing these items in a pl/sql process under 'Page Rendering'
    For example,
    :P3_ARCHIVES := '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> ';
    When our environment was upgraded from HTMLDB1.5 to HTMLDB2.0,
    instead of displaying the proper value of :P3_ARCHIVES,
    it was displaying the tags,
    i.e. instead of displaying 'Archives', it was displaying the whole
    '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> '
    So, when we changed all items to 'Display as Text (does not saves state)' and it was working.
    But then we have another problem,
    We render the rest of the same page with another pl/sql block,
    Here is a portion from that pl/sql for your reference,
    htp.p('
    <script>
    //Script to check the status change.
    //The script source is rendered through PL/SQL.
    function checkStatus()
    var promptStr = someString;
    if(ans.toUpperCase() == "AMBER" || ans.toUpperCase() == "RED")
              var cnfm = confirm(promptStr);
              if(cnfm)
              do something....
    </script>
    htp.print('
    <td width="5%" bgcolor="#ebebc5" height="19" align="middle" >
    <input TYPE="radio" name="'||l_g_fnumber||'" value="GREEN"');
    IF l_allow_update THEN
         htp.print(' onClick="checkStatus()"');
    ELSE
    htp.print(' disabled onmousedown="return false;"');
                        do something....
    Now the issue is , when we changed all items to 'Display as Text (does not saves state)', the checkStatus() function is not getting called in the onClick
    event of the radio button and hence the confirm window for the call to
    confirm(promptStr) is not coming up.
    But if we revert back the items to 'Display as Text (saves state)',
    the checkStatus() javascript function is getting called properly but html tags are displayed against the items instead of the proper value (as mentioned in ********)
    Please do let us know a possible solution to this issue.
    Thanks & Regards-
    Rupak

    Thanks Varad for your response.
    This is the error i am getting.
    1 error has occurred
    PLSQL anonymous block source type can be used ONLY with Display Text (based on PLSQL) item type.
    yes i am using in the source..
    I also tried with the PL/SQL Expression of FUNCTION in this case it is executing the query but once i run the page ora- 06550 error occured.
    Thanks
    AT
    Edited by: ranu on Jan 8, 2009 2:51 PM

  • Can "Standard Report Column" be the Default Instead of "Display as Text"

    Almost every report region I write has some html in at least one column, whether it's a break or an apex_item or something else. Hence, when the region renders with the default settings, the column shows the html code - I have to change the column display type from "Display as Text" to "Standard Report Column".
    Is there some setting to make "Standard Report Column" the default? (Isn't that kind of what the word Standard implies?)
    Thanks,
    Gregory

    That Other Fellas Brother wrote:
    Almost every report region I write has some html in at least one column, whether it's a break or an apex_item or something else. Hence, when the region renders with the default settings, the column shows the html code - I have to change the column display type from "Display as Text" to "Standard Report Column".
    Is there some setting to make "Standard Report Column" the default? (Isn't that kind of what the word Standard implies?)In earlier versions of APEX "Standard Report Column" was the default. The default was changed in APEX 4.0 to "Display as Text" (which escapes HTML-sensitive characters) as a security measure to limit vulnerability to XSS attack. This is necessary for the protection of users and (so-called) developers who are not security conscious/HTML savvy.
    There's no option to change this, and I doubt that one will be provided in the future. The indications are that the Oracle APEX team are committed to blocking as many security holes as possible by default, leaving it to the developer to consciously make any modifications that increase the surface exposed to attack.

Maybe you are looking for

  • Please Reply fast

    Hi i was wondering is it possible i have iChat 3 on my tiger and i know on leopard you can make yourself invisible is it possible to do that on tiger?

  • How to add a powerpoint to the webpage. Many tks.

    How to add a powerpoint to the webpage. Many tks.

  • Project Effective from Date

    Hi, As soon as i create a new project using Project quick entry screen,the key member for project manager "effective from date" is getting set automatically which is not providing the actual project start date...when i try to alter it..itz not allowi

  • JSF 1.2 with WAS 6.1

    Our current environment WAS 6.1.0.9 and using jsf 1.1 Is it possible to upgrade to JSF 1.2 with upgrading to WAS 7 ? Thanks

  • Error verbosity when page causes a 404?  (APEX 2.2.0)

    Hi all, I have a select list. That select list has an SQL expression that is evaluated to determine if the item will be rendered as "read only". I have a PL/SQL region that assigns a value to that page item earlier. If the query returns integers for