How to display custom names for attributes in JSP pages
I would like to use custom names for my attributes in Struts JSP table headers.
For example, if the database table named "Country" has a column CNT_ID and BC4J wizard mapped it into an Entity Object's attribute "CntId" I would like to display it as "Country ID" in my JSP table header.
Now, I suppose the place to try this is probably in DataEditComponent.jsp, DataQueryComponent.jsp etc., and probably has smthg to do with jbo:AttributeIterate, but I still can't figure how to achieve this...
I use JDev 9.0.3
Kresimir,
It's not clear from your posting whether you've worked out how to do what you want with control hints, so just in case, here's how:
- In the navigator, select your entity object or your view object
- In the structure pane, double-click the attribute you want to edit (CntId)
- In the attribute editor, select the control hints page
- In the Label Text field, type the text you want to use for your label (Country). Click OK.
Hope this helps
Blaise
Similar Messages
-
How to use custome tag lib in the JSP page?
How to use custome tag lib in the JSP page?...with JDeveloper
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.working_with_jsp_pages%7Cjsp_ptagsregistering~html/
-
How to display XML file(as markup) in jsp page..?
Hi All,
* I have to display the XML file(as markup) in jsp page (Tree Format)....
* My XML file is an java.io.file object , and how to view this XML file on my JSP page...........
Thanks in Advance,
JavaImranYou mean you want to see the XML source?
You need to replace the characters '<' and '&' with corresponding entities '<' and '&'. You can use replaceAll, but do the ampersands first.
Then I suggest you probably want to put them in a <PRE> block. -
How to access custom property for attribute and control in .vm file?
Hi,
I have created custom properties in OPM for attribute and apply also that properties to attribute.
But if how to access that value in .vm file?
I accessed using
$attribute.getProperty("ScreenProp", "default value")
but it's not working but same is worked for screen custom property$control.getProperties().get("PropertyName") works for custom properties on a control
If you output $control and $control.getProperties() to the html you can lookup the API for the used classes.
I can't give an example of the html because it's stripped in this forum
Edited by: Peter van de Riet on 20-mei-2011 14:18 -
How to display customer name in sales analysis report (item) layout
Hi,
Currently I try to run the sales analysis report by item with secondary selection on customer from & customer to.
Is it possible for the layout to display the customer from & customer to.
I try to look for the table name OFLT, but I cannot find it.
My main concern is to display the customer name in the layout for sales analysis by item.
ThanksHi,
The table OFLT stores selection criteria for all form. If there is no customer name/code in system PLD, it is very hard to find table or system variable.
Tried to get customer name, not successful.
Alternatively can try to create customized query to get additional field in sales analysis report.
Thanks & Regards,
Nagarajan -
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,
Amiti 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 add custom action for Publishing Tab on Pages?
I am able to add a custom action for libraries tab on document library , but i am unable to add it on Publishing tab on Pages.
Below is the code , what i am trying.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="Ribbon.PublishTab.Publishing.CheckLinkedPageItems"
Location="CommandUI.Ribbon"
RegistrationType="List"
RegistrationId="850"
Sequence="40"
Title="Move Documents">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.PublishTab.Publishing.Controls._children">
<Button
Id="Ribbon.PublishTab.Publishing.CheckLinkedPageItemsButton"
Alt="Check Linked Page Assets"
Sequence="40"
Command="CheckLinkedPageItems"
Image32by32="/_layouts/images/centraladmin_systemsettings_email_32x32.png"
LabelText="Check Assets"
TemplateAlias="o1"
ToolTipTitle="Check Linked Page Assets"
ToolTipDescription="Checks each image, document and page linked to from this page and verified if the asset is both working (not a broken link) and published. You may also use that page to publish all unpublished assets at once."
/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="CheckLinkedPageItems" CommandAction="javascript:alert('button clicked!);" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>
any thoughts?Hi,
Check the secquence number . I don't see any issue in your code. Try with different sequence numbers.
Did you find this Helpful? Please Mark it So! Thank you. Sachin Kumar -
How to display a variable(non editable) in JSP page?
I have this java code in my JSP and I want to print it on the JSP page with a name associated to it so that it can be passed to a Java Bean. How can I do it?
String user = display.getOwnerName();whatever value you want to send it to server side, you have to put it in a "form". You can put it in HTML form input tag , JSP form, Struts form or JSF form.
for example:
<form action="getUserProfile.do">
<input type="text" value="<c:out value='display.ownerName' />" />
</form>
kind regards -
How to display a document content in a JSP page
Hi friends,
I am trying to display a document's content in a JSP page after user authentication.For that I mapped a jsp file with extension ".sens" in Content Management SDK manager,and put the file in the directory '/ifs/jsp-bin' of webstarterapp,but it is not working.Please help me to solve the probleb as earliest.
Regards
Prasenjitunder view put a new tag
<f:view>
<ui:script url="page.js"/>
and thats it -
How to display result in more than one jsp page
Hi all,
the result is a very large it will take more than one jsp page in this senario how we will display the result in more than one jsp page.
Thanks in Advance.The magic word is "paging". Look around using this keyword.
Basically it's all about subquerying, (eventually) caching and sublisting. -
How to display custom forms or reports on portal pages?
Hi friends
I am new to Portal. I knew that we can create forms and reports in portal.
But how can i display a custom form ( ex: employee.fmb) on a portal page?
Thanks
RaviAre you meaning Oracle Forms Module and Oracle Reports?
If so
please check the following
Reports
http://download-uk.oracle.com/docs/cd/B14099_15/bi.1012/b14048/pbr_conf.htm#sthref494
Forms (you can only invoke forms using the SSO)
http://download-uk.oracle.com/docs/cd/B25016_02/doc/dl/web/B14032_02/security.htm#sthref42
Otherwise you can create your custom HTML form and report using the following technologies:
http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_matrix.htm#CHDJIEIH
Please refer also to:
http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_understand.htm#sthref35
Hope this helps
Cheers
Diego -
How to Created custom report for Ship not Billed (SD/FI)?
Hi all,
I am anticipating to write some abap reports..Here is one of them..
Anyone can help me with writing a Report , how to do 'Custom Report for shipped not Billed(SD/FI)' ..But since I am new to Abap , if you wish to reply, please use a little more detail and simple explanation, step by step so I can understand what is the idea, how it can be acheived...what kind of report should be used , techniques, tables etc...:)
Appreciate your help!
Regards,
BobyHi Boby,
You need to create custom transaction to achive these results.
you will have selection-screen ,it would be :
Date : Here date would be mandatory - Ranges Option
Customer - Optional field - Ranges
Order # Sales Order (Optional) Ranges
Invoice # - Invoice # (Optional) Ranges
You will get the data based on ur selection-screen criteria ...
First you will have customer order details from diffrent table
VBAK,
VBAP,
LIKP
LIPS
VBRK,
VBRP
KNA1,
VBFA Tables ( See the my sample program )
Output would be :
Customer # Custome Name Order # Delivery # Invoice # Netpr, Netquantity ,
Check the condition whether invoice table has VBRK-RFBSK = ''.
See the my sample program : This is sales report by monthly..
REPORT ZFDSALES_REPORT no standard page heading
message-id zwave.
Data Declaration Part
TYPE-POOLS
type-pools : slis.
Tables
tables : VBAK,
VBAP.
Internal table for VBAK Table
data : begin of i_vbak occurs 0,
vbeln like vbak-vbeln,
bstnk like vbak-bstnk,
vdatu like vbak-vdatu,
end of i_vbak.
Internal table for VBAP and MATNR
data : begin of i_vbap occurs 0,
vbeln like vbap-vbeln,
matnr like vbap-matnr,
kdmat like vbap-kdmat,
kwmeng like vbap-kwmeng,
netpr like vbap-netpr,
maktx like makt-maktx,
end of i_vbap.
Internal tables
data : begin of i_sales occurs 0,
vdatu like vbak-vdatu,
bstnk like vbak-bstnk,
matnr like vbap-matnr,
maktx like makt-maktx,
kdmat like vbap-kdmat,
kwmeng like vbap-kwmeng,
netpr like vbap-netpr,
end of i_sales.
Variable for ALV
data : v_repid like sy-repid,
gt_fieldcat type slis_t_fieldcat_alv.
Selection-screen
selection-screen : begin of block blk with frame title text-001.
select-options : s_vbeln for vbak-vbeln,
s_erdat for vbak-erdat,
s_ernam for vbak-ernam,
s_vdatu for vbak-vdatu obligatory,
s_BSTNK for vbak-BSTNK,
s_KUNNR for vbak-kunnr,
s_matnr for vbap-matnr,
s_KDMAT for vbap-KDMAT.
selection-screen : end of block blk.
Initilization
initialization.
v_repid = sy-repid.
S T A R T - O F - S E L E C T I O N ****************
start-of-selection.
Get the data from VBAK and VBAP Tables
perform get_vbak_vbap.
E N D - O F - S E L E C T I O N *****************
end-of-selection.
Display the data
perform dispolay_data.
*& Form get_vbak_vbap
Get the data from VBAK and VBAP Table
FORM get_vbak_vbap.
Get the data from VBAK Table
select vbeln bstnk vdatu from vbak into table i_vbak
where vbeln in s_vbeln
and bstnk in s_bstnk
and vdatu in s_vdatu
and kunnr in s_kunnr
and erdat in s_erdat
and ernam in s_ernam.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given selection'.
endif.
Get the data from VBAP Table
select avbeln amatnr akdmat akwmeng a~netpr
b~maktx into table i_vbap
from vbap as a inner join makt as b on bmatnr = amatnr
for all entries in i_vbak
where a~vbeln in s_vbeln
and a~kdmat in s_kdmat
and a~abgru = space
and a~matnr in s_matnr
and a~matnr ne '000000000000009999'
and a~matnr ne '000000000000004444'
and a~matnr ne '000000000000008888'
and a~matnr ne '000000000000001111'
and a~werks = '1000'
and b~spras = 'E'
and a~vbeln = i_vbak-vbeln.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given selection'.
endif.
sort i_vbak by vbeln.
sort i_vbap by vbeln matnr.
loop at i_vbap.
read table i_vbak with key vbeln = i_vbap-vbeln
binary search.
if sy-subrc eq 0.
i_sales-bstnk = i_vbak-bstnk.
i_sales-vdatu = i_vbak-vdatu.
i_sales-matnr = i_vbap-matnr.
i_sales-kdmat = i_vbap-kdmat.
i_sales-maktx = i_vbap-maktx.
i_sales-netpr = i_vbap-netpr.
i_sales-kwmeng = i_vbap-kwmeng.
append i_sales.
else.
continue.
endif.
clear : i_sales,
i_vbap,
i_vbak.
endloop.
sort i_sales by vdatu bstnk matnr.
refresh : i_vbap,
i_vbak.
ENDFORM. " get_vbak_vbap
*& Form dispolay_data
Display the data
FORM dispolay_data.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_sales
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " dispolay_data
*& Form fieldcat_init
text
-->P_GT_FIELDCAT[] text
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Delivery Date
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VDATU'.
LS_FIELDCAT-OUTPUTLEN = 12.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Delivery Date'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Purchase Order #Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'BSTNK'.
LS_FIELDCAT-OUTPUTLEN = 25.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Purchase Order #'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material
CLEAR LS_FIELDCAT.
LS_FIELDCAT-REF_FIELDNAME = 'MATNR'.
LS_FIELDCAT-REF_TABNAME = 'MARA'.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Material #'.
ls_fieldcat-seltext_M = 'Material #'.
ls_fieldcat-seltext_S = 'Material #'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MAKTX'.
LS_FIELDCAT-OUTPUTLEN = 40.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Material Description'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Customer Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KDMAT'.
LS_FIELDCAT-OUTPUTLEN = 35.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Customer material no.'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Quantity
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KWMENG'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Quantity'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Net Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'NETPR'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Net Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init
Reward Points if it is helpful
Thanks
Seshu -
Custom name for Timer thread?
Thread has the usefull setName() method to set a custom name for a Thread. Timer doesn't have such a method but a Timer is itself a Thread. How can I set a custom name for a Timer thread?
Yes, very usefull for debugging, e.g. when running mutliple threads in an IDE, you can easily identify the thread to continue to inspect without inspecting the threads content/attributes.
But also for logging: for a multithreaded server application having a log file, each thread can log messages to the log file (standard Java logging API). To be able to assign the messages to each thread, the thread name can be used as the message prefix. -
How to create custom infotype for training and event management
hai freinds can any one tell me how to create custom infotype for training and event managment with following fields
PS No PA0000-> PERNR
Name - PA0001 -> ENAME
IS PS.No. PA0001-> PS no. of Immediate Superior
IS name PA0001 -> ENAME
thanx in advance
afzalHi,
Your question is not clear for me. Since it is a TEM infotype, it could be a PD infotype.
If you wish to create a PD infotype, use transaction PPCI to create the infotype.
But before that you need to create a structure HRInnnn (where nnnn is the infotype number) with all the fields relevant for the infotype.
If you wish to create a PA infotype, use transaction PM01 to create the infotype.
But before that you may be required to create a strcuture PSnnnn (where nnnn is the infotype number) with all the fields relevant for the infotype.
Regards,
Srini -
How to find CUSTOMER EXIT for a Standard SAP program
How to find CUSTOMER EXIT for a Standard SAP program
Hi
To introduce the techniques of enhancement in standard SAP system. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
They do not affect standard SAP source code.
When you add new functionality to your SAP System using SAPs exits, you do not alter the source code of standard SAP programs in any way. The code and screens you create are encapsulated as separate objects. These customer objects are linked to standard applications, but exist separately from SAPs standard software package.
They do not affect software updates.
When you add new functionality to your SAP System using SAPs exits, your objects (called customer objects) must adhere to strict naming conventions. When it comes time to upgrade a to a new software release, customer objects names ensure that they will not be affected by any changes or new additions to the standard software package.
Customer exits are not available for all programs and screens found in the SAP System.
Any change made to an SAP object in a customer system is called a modification. Customers usually modify their systems for one of two reasons. Either they make changes to the SAP standard in order to adjust the R/3 System to their specific business needs (actual modifications), or they alter individual SAP objects in order to correct an error (as recommended in an SAP error note).
You should only modify the SAP standard if the modifications you want to make are absolutely necessary for optimizing work flow in your company. Be aware that good background knowledge of application structure and flow are important prerequisites for deciding what kind of modifications to make and how these modifications should be designed.
SAP application programmers create SAP enhancements in transaction SMOD using function module exits, menu exits, and screen exits.
Customers are given a catalog containing an overview of existing SAP enhancements. They can then combine the SAP enhancements they want into an enhancement project using transaction CMOD.
SAP enhancements are made up of component parts. These components include function module exits, menu exits, and screen exits. A specific component may be used only once in a single SAP enhancement (this guarantees the uniqueness of SAP enhancements).
Customer enhancement projects consist of SAP enhancements. Each individual SAP enhancement may be used only once in a single customer enhancement program (this guarantees the uniqueness of a customer project).
SAP application programmers preplan function module exits, menu exits, and screen exits for their applications and combine them to create useful enhancements for the R/3 System.
Customers create their own enhancement projects for their systems using SAP enhancements. You can customize the individual components of an enhancement project by creating your own include programs (for function module exits), texts (for menu exits), and subscreens (for screen exits).
Maybe you are looking for
-
I want the ebs report to give me an output in Excel
i am a bit new i can only view txt and pdf files as output from my ORACLE ERP. I am able to change the file in the concurrent request definition window to XML but when i run the report from my HRMS resp. it gives me TAGS and not the output in excel.
-
Folder containing Swedish characters isn't recognise. IsDirectory()
Hello! I have a problem with an application that is supposed to delete folders containing to files. It works fine but a folders name contain Swedish charters the applications doesn't work because that folder doesn't get recognizes as a directory by i
-
Pull out a report of all cop orders
Hello, I need to pull out a report of all COP orders for one month which have to include cop1 and cop2 delivery numbers. Any help would be appreciated. Thank you!
-
Greetings to all. I've downloaded Java for Mac OS X 10.5 Update 1 (Java SE 6), so should i tick "Java SE 6" under Java preference? Since Safari is running at 32 bit only browsers, so what is the point of downloading Java SE 6? Thanks and best regards
-
Getting started in SAP Security
Hi guys, I've been in the industry working as an ETL developer, designer and DBA for a few years now, although mostly worked in a non-sap environment. I'd like to get into SAP Security. I need your input in getting started. What's a good place to sta