How to print #ITEM.TYPE# DISPLAYNAME in an html/dynamicpage portlet.

Hi, I want to print the item type displayname. The available placeholder is #ITEM.TYPE# but it prints the NAME column in
WWSBR_ITEM_TYPES. I want the DISPLAY_NAME column that makes more sense IMHO. Any ideas?
And if this can't be done, any idea how to get the current item id in PLSQL and try to find it with a custom query?
Thanks

This piece of code does the job, OK!
<oracle>
begin
for c2 in (
select name, display_name, language from portal.WWSBR_ITEM_TYPES where name= '#item.type#' and caid = '#item.pagegroupid#' and language='el'
loop
htp.p(c2.display_name);
htp.br;
end loop;
end;
</oracle>

Similar Messages

  • How to print difftrent types of materials?

    Hi ABAPer Friends,
    I want to print difrent types of materials as our condition.
    I know all abapers about materials, materials are different types and those are RAW MATEREIAL,FINISHED PRODUCT and SEMI FINISHED MATERIAL  and diffrent types there.What is the exact code of suppose i take the material of RAW MATERIAL what is the code?
    and i take SEMI FINISHED PRODUCT MATERIAL  print only that material what type or how many types are there in particular material i want only that material output.Please understand my question i request to all members.This is the minimum real time question in any company.
    Suppose i take RAW MATERIAL the output is like this way,this is example
    MATERIAL NO        MATERIAL TYPE
    97979090990          ROH1 or 1ROH
    54354354354          ROH2 or 2ROH
    I want the output this type of scenario.
    Any body tell i will really appreciate and heartful thanks.

    you have to use condition statements to print sll the different materials.

  • How to know item type in a .fmt???

    My problem is that I don't know item type when I read a .fmt
    Please, Help Me.
    Thank You

    The FMT format is not designed to be readable - use the Forms Object list report instead. If you are trying to make changes by changing the FMT, this is not supported. Look at the Forms C api in 6i and 9i or the Java API (JDAPI) in 9i to do this kind of operation.

  • How to print true type font in smartform with ECC6

    hi,expert:
    I want to use true type font "Comic Sans MS.ttf".
    I upload this font file by SE73 named ZTT2I.
    In SE73.. select the Radio button "Font Families" And click on the "True type Font Installation" button. click the font attribute ITALIC。
    Our print device is LP01 and driver is CNSAPWIN
    when I create a new style in smartform using the font ZTT, in preview window the font still like other font.
    Our system is IDES ECC6, SAP_BASIS SAPKB70014
    Now when I create smartfrom in language EN adn logon with language EN,it can print correct style of that font.
    But if the smartform is base on language ZH or logon with language ZH, the output is not correct.
    why? How to solve it?
    how can I solve this problem?
    thaks a lot

    Hi,
    Is the problem that uploaded true type font ZTT is not used when language is ZH? Did you update the chinese version of the style associated with the smartform? There is a separate style for each language version. So you need to log on in Chinese language and update the style with new paragraph, character formats. Then you need to activate the style and smartform for ZH langauge also.
    Regards,
    Aidan

  • How to use Item Type - User Area ?

    Hi.
    How can I use User Area programmatically.
    How can I create my own User Area with C ?
    Thx.

    press F1 while you stand on the property :
    then you get many pages of help ...
    Items are the interface objects that display information to operators and allow them to interact with your application. Each item in a form (text item, image item, radio group, and so on), belongs to a block. Oracle Forms supports several types of interface items that can be used to build an application's interface. bean area An identification of a JavaBean that supplies a control for this item. chart item A bordered rectangle of any size that can display a chart or other display generated by Graphics. Operators cannot navigate to or manipulate chart items.
    ....

  • How to print items in the MAIN window of the NEXT page (smartform)?

    Dear forumers,
    There are two pages (FIRST and NEXT) in my smartform with the same MAIN windows in each of the pages. Whatever that are changed in FIRST-MAIN window will also be seen in NEXT-MAIN window.
    I will need to control the printing of table TABLE3 contents (already contained in the MAIN window) such that if a variable V_MAT_PRINT is 'X', the TABLE3 contents will only be printed in NEXT page and not printed in FIRST page at all.
    How may I achieve this? Please help.
    Thank you.

    >
    Mohammed Ahasanullah Mulla wrote:
    > Hi Deborah,
    >
    > I had also faced a similar situation,in my case it was three pages..However i will try to tell you for 2 pages..After the second table .Add a program lines and force a page break only if V_MAT_PRINT is 'X'. After the program lines add a command and make the go to new page as second page.This will solve your problem.I have done the same and its working fine .If you have any questions do ask.
    >
    > Thanks,
    > Ahsan
    Hi Ahsan,
    Here's my case.
    If V_MAT_PRINT is 'X', print the following:-
    FIRST page, MAIN window
    - TABLE1
    - TABLE2
    - TABLE4
    - TABLE5
    NEXT page, MAIN window
    - TABLE3
    If V_MAT_PRINT is not 'X', print the following (no additional controls / changes are needed, everything remains unchanged):-
    MAIN window
    - TABLE1
    - TABLE2
    - TABLE3
    - TABLE4
    - TABLE5
    In this case, is a page break suitable? I doubt it as TABLE4 and TABLE5 will still need to be printed back on the FIRST page regardless of the V_MAT_PRINT value.
    Please advise further. Thanks.

  • How to print item texts in po contract form when the fixed item status is N

    Hi all,
    I'm trying to print the item texts in the contract forms.
    I need to print the item texts when the status is 'N'  and at the same time the status is blank in the same form.
    I tried using t165p.I'm unable to print the both the message status with N and blank at the same time.
    Please guide in this regards.
    Thanks and regards,
    Krishna

    Hi Luis,
    Thanks yes, now it get captured soon after changed the item accordingly as you said.
    so there is no need of creating hidden item for those item (i.e) &P1_DIS_COURSE_NAME. AND &P1_DIS_DATE.
    right??
    Regards,
    Mini

  • How to print item from within app?

    How can I create a discrete text element inside an ipad app that can be printed? Something like shopping list etc
    Would also like to be able to email to self and/or share. Using dps cc, app for ipad only.
    thx for any tips!

    We do not support printing in DPS. Single Edition applications do not support sharing.
    Neil

  • How to use Item Type User Area in Oracle Forms 6i

    Hi, People.
    Please, give the link - How can I use User Area programmatically. Thx.
    Message was edited by:
    user625002

    http://www.oracle.com/technology/documentation/6i_forms.html

  • HOW TO PRINT IN JAVA?

    Hi everyone,
    i made a page in jsp in which there is a combobox which contain different users like admin,faiyaz,ali etc....
    question is that when i select 'admin' from combobox and click on 'generate report' button.new page opens which show report of 'admin' activities.there is a one PRINT link on page.when click on print report will be printed...
    how can i print particular report page which is opened?
    help me regarding this problem...
    thnxs in advance
    with regards

    create a CSS file called print.css for example then add it to your JSPs like that
    <html>
    <head>
    <link rel="stylesheet" media="print" href="<%=request.getContextPath()%>/print.css" type="text/css" />
    </head>
    <html>In this CSS file, add code that hides links and other things you want to hide(or show) when printing
    Use javascript window print function like this:
    <a href="javascript:window.print()">Print</a>
    NB: This is a web question and has nothing with Java

  • Developer 6i,Item type "User Area" and "Bean Area"

    kindly I want to know how to use item type "user area" and "Bean Area",i never used them and i didnt find good help about them,and i appreciate any help with examples.

    Hello,
    I have forgotten what is the user area because it has disapear with the 9i version.
    The bean area allows you to put some java bean component inside your Forms module.
    Check out the demos available on the Forms OTN page
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    Francois

  • How to print from iPad mini to a Cacon imagePrint MF4880dw

    Just bought this Canon all-in-one, and after installing it, found that was not compatible with air print. There seem to be several possible solutions to print to it from my iPad mini. What do the experts feel is the best way to print documents?

    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    How to Print from Your iPad
    http://www.dummies.com/how-to/content/how-to-print-from-your-ipad.html
    How do you print directly from the iPad
    http://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-print-documents-direc tly-from-ipad.html
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99) http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
    Print (Print to ALL Printers) ($1.99)
    https://itunes.apple.com/us/app/print-print-to-all-printers/id299423224?mt=8
     Cheers, Tom

  • Delivery document how to print the BOM Parent and Child items

    Hi,
    I have a production BOM. In Delivery document how to print the Parent and Child items Item Code and Qty.At the time
    of add a delivery document Inventory stock redused only in Parent Item not child item because child item stock already reduced in issue for production.

    If you need to print both the BOM Parent and Child items, you have to create your own report. BOM is only for production if it is not Sales type.
    Thanks,
    Gordon

  • How to print multiple items in SAPScripts

    Hi gurus,
    I have a list of items to print out in SAPScript but I can implement it. I've searched this forum for over a day and I can't find the correct answer. I post my code here. Hope you can help me. Thanks in advance.
    __P/S:__ I found that someone here solved this by using index. Can you tell me how to implement it?
    DATA: BEGIN OF ITAB OCCURS 0,
           Elements here
          END OF ITAB.
    DATA: BEGIN OF XTAB OCCURS 0,
           Elements here
          END OF XTAB.
    DATA: WA_XTAB LIKE XTAB.
    DATA: ZOPTIONS LIKE ITCPO OCCURS 0 WITH HEADER LINE.
    DATA: ZPAGE TYPE I.
    START-OF-SELECTION.
      PERFORM PREPARE.
      PERFORM FORM_OPEN.
      PERFORM FORM_WRITE.
      PERFORM FORM_CLOSE.
    FORM PREPARE.
    Add data to itab & xtab.
    ENDFORM.
    FORM FORM_OPEN.
      CLEAR : ZOPTIONS.
      ZOPTIONS-TDDEST    = 'LOCLSVC'.
    ST_OPTIONS-TDPRINTER =
      ZOPTIONS-TDPREVIEW = 'X'.
      ZOPTIONS-TDIMMED   = 'X'.
      ZOPTIONS-TDDELETE  = 'X'.
      ZOPTIONS-TDPROGRAM = SY-REPID.
      ZOPTIONS-TDTELELAND = 'VN'.
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                DEVICE   = 'PRINTER'
                FORM     = 'ZF_CC_CI'
                LANGUAGE = SY-LANGU
                OPTIONS  = ZOPTIONS
           EXCEPTIONS
                CANCELED = 1
                DEVICE   = 2
                FORM     = 3
                OPTIONS  = 4
                UNCLOSED = 5.
      IF SY-SUBRC <> 0.
        MESSAGE E001 WITH 'Output was cancelled'
                          'by the user.'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " FORM_OPEN
    FORM FORM_WRITE.
      CLEAR ZPAGE.
      LOOP AT ITAB.
        ZPAGE = ZPAGE + 1.
        PERFORM FORM_START.
        PERFORM WRITE_TITLE.
        PERFORM END_FORM.
      ENDLOOP.
    ENDFORM.
    FORM FORM_START.
      CALL FUNCTION 'START_FORM'
           EXPORTING
                FORM     = 'ZF_CC_CI'
                LANGUAGE = SY-LANGU
               PROGRAM  = SY-REPID
           EXCEPTIONS
                FORM     = 1
                FORMAT   = 2
                UNENDED  = 3
                UNOPENED = 4
                UNUSED   = 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.
    ENDFORM.
    FORM WRITE_TITLE.
    DATA: NCOUNT TYPE I,
          NI TYPE I.
        NI = 1.
        DESCRIBE TABLE XTAB LINES NCOUNT.
        DO NCOUNT TIMES.
          CLEAR WA_XTAB.
          READ TABLE XTAB INTO WA_XTAB INDEX NI .
          CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                ELEMENT = 'ITEM'
                TYPE    = 'BODY'
                WINDOW  = 'ITEM'.
          NI = NI + 1.
        ENDDO.
    ENDFORM.                    " WRITE_TITLE
    FORM END_FORM.
      CALL FUNCTION 'END_FORM'
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SPOOL_ERROR              = 3
                OTHERS                   = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " END_FORM
    FORM FORM_CLOSE.
      CALL FUNCTION 'CLOSE_FORM'
           EXCEPTIONS
                UNOPENED                 = 1
                BAD_PAGEFORMAT_FOR_PRINT = 2
                SEND_ERROR               = 3
                OTHERS                   = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " FORM_CLOSE

    Hi Le Khanh Vinh ...
    In Script have You declare Two pages... Let say there is Two pages with names like ..FIRST and Second.
    In Standard Attributes of First Page give Next Page as Second.
    and for Second Page Standard Attributes give Next Page as Second only.. This will resolve for more Line Items thats it..
    Any Info need plz do reply ..
    Regards,
    Sg

  • How to write a query on a component-item-type properties

    hi
    For the following sample repository definition file.
    <item descriptor name ="student" idcolumn="id">
    <property name="name" data-type="string"/>
    <property name="department" component-item-type="department" data-type="list" />
    </item descriptor>
    <item descriptor name ="department">
    <property name="name" type="string"/>
    <property name="HOD" data-type="string" />
    </item descriptor>
    If I get a view of the student Itemdescriptor and will I be able to query on the department item descriptor in the same rql ?

    Nitin,
    Thanks for the mail.
    I am getting below error.
    Attempt to create a sub-property query expression for the property: "department", which is not a RepositoryItem. Only properties that are RepositoryItems can have sub-properties.*
    atg.repository.RepositoryException: Attempt to create a sub-property query expression for the property: "department", which is not a RepositoryItem. Only properties that are RepositoryItems can have sub-properties
    For more clarity PFB how the ItemDescriptor looks like
    <item-descriptor name="student" display-property="displayName">
    <property name="isActive" data-type="boolean" default="false"/>
    <table name="student" type="auxiliary" id-column-names="student_ID">
    <property name="studentId" display-name="student" column-name="student_id" data-type="string" required="true"/>
    </table>
    <table name="student_department" type="multi" id-column-name="student_ID" multi-column-name="sequence_id">
    <property name="department" display-name="department" column-name="department_id" data-type="list" component-item-type="departmentl" />
    </table>
    </item-descriptor>
    <item-descriptor name="department" super-type="superDepartment" sub-type-value="department" display-property="name" display-name="departmentname">
    <table name="department" type="auxiliary" id-column-name="department_id">
    <property category="Basics" name="location" data-type="int" column-name="location" display-name="Location" required="true" default="1">
    <attribute name="propertySortPriority" value="-5"/>
    </property>
    <property category="Basics" name="name" display-name="name" column-name="name" data-type="String" />
    <property category="Basics" name="HOD" display-name="HOD" column-name="HOD" data-type="String"/>
    </table>
    </item-descriptor>
    Thanks
    Shobby

Maybe you are looking for