How to Change the display format of Parameter form in HTML
I have created a parameter form to allow user to choose the parameter values before printing the report. The parameter which will display in the web-browser has its own predefined format. How am i going to change this format? eg. changing the Background color, table background color, put in some pictures, set the alignment of the text and fields....
Now I am able to change the header and footer. I can put in the company logo in the header by changing the report escape - Before form value and the footer in the report escape - after form value. How about the body which all the boilet text and fields will be display here? I need to change the alignment, the table background color and the text style and format also... where should i change this?
Thanks
Reports only provides limited formatting for the parameter form. In your case, you seem to need to take over greater control of the parameter form and you're halfway there.
You've noted that you can control the header & footer values, what you need to do is extend those escapes to render the complete parameter form and remove everything from the actual reports parameter form. ie: Remove the labels/parameter form fields and render these directly in the HTML in the before parameter HTML escape. This allows you to insert any HTML you want - you probably want to start with the Reports generated HTML and move it into Frontpage to edit to your required format.
What you are doing in this case is still using Reports url/submit mechanism and parameter form validation but bypassing Reports rendering of the parameter form.
Similar Messages
-
How to change the date format in xml form?
hi,
How to change the date format in xml form?
For example: 11/20/2008 3:00:03 PM -> 11-20 03:00
Any opinions greatly appreciated!
Thanks.
Edited by: ke wenxing on Dec 2, 2008 8:33 AMYou could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
Click the defaults button and change the date format.This changes date format for all the dates in your login. -
How to change the date format?
Hi,
I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
Here is my code snippet which i used to display the data format as(2009-1-9)
*<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()"> (YYYY-MM-DD)*
*<SCRIPT LANGUAGE="javascript">*
dateSubmitted()
*</SCRIPT>*
function dateSubmitted()
if (document.pgUpdate.date_submitted.value == "")
date = new Date();
month = date.getMonth() + 1
document.pgUpdate.date_submitted.value =
date.getYear() + "-" + month + "-" + date.getDate();
return true;
Can anybody help me how to change the date format?
Thanks in advance!prit123 wrote:
use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
Please use forums devoted to Javascript. You're here at a Java/JSP forum.
There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
String formatPattern = "yyyy-mm-dd";
SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well. -
How to Change the default format for differnt language both in java and SQL
Hello,
I am using SQL Anywhere in my application.And in my java client application user can log in with their preferred language like English,French,German,Chinese,etc....When even the user log in to the application the data from the database will be displayed with respective to the language.But when i tried to see the dates in Interactive SQL all the dates r in the format of '2008-12-5 16:44:10:673' but say for example for Chinese it will be displayed as '08-12-5 16.44.10' and for some other language it will come in some other format(which is standard format for those language).
Mean while i am using java client.When ever i am displaying a date it will be with respective to the language using Locale and date format classes.When i am displaying the date for Chinese in GUI it will show the date as '08-12-5 下午4:44'. In summary
1. For Chinese,the default date pattern from SQL Anywhere date base is '08-12-5 16.44.10'
2. For the same language date using java code is displaying as '08-12-5 下午4:44'. and i am getting the time format pattern as 'ah:mm'.I tried to change the display format in regional settings but no change in display.
Is there any way to make both the time format as same?
Please help me to solve this issue!!!
Thanks in Advance!
Arunpon_arun wrote:
Hello masijade,
I did as u said but still the date display is not the same......And I'm telling you that it doesn't matter. What "format" the DB likes to display a Date in when it displays it, is completely irrelevant to how you display it in your GUI.
A Date does not have a format. A String representation of a Date does.
As long as you use getDate from ResultSet and setDate from PreparedStatement you do not have to worry about this. Those methods will handle dates to and from the DB themselves. You can then use SimpleDateFormat to display the Date anyway you want to.
Just because you show the Date one way, and the DB shows it another, does not mean that it is not the same date. Don't get hung up on how the String representation of the Date looks.
Edit: If you simply want to be able to do "Human Comparisons" then look at the SQL TO_CHAR function (for Oracle, for other DBs the function name may vary). And for Java, read the API docs for SimpleDateFormat (as already intimated above). -
I have three email accounts and want to know how to change the display order.
I have three email accounts and want to know how to change the display order.
Install this add on.
https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/?src=search -
How to change the width of dropdown parameter's in BI Publisher
Hi,
Can you please tell me how to change the width of dropdown parameter's in BI PublisherKirk,
In the <rw:graph> tag, just add the standard HTML properties of width="xxx" and height="xxx" to control the width and height of the image. BTW, the graph tag is in the on-line help, although not in the index. You can find it by doing a search for "rw:graph".
regards,
Stewart -
how to change the display of a spectrogram (background color).
I am using JFTA Adaptive spectrogram. Need to change the color of the background.: how to change the display of a spectrogram (background color)
Attachments:
snap.docx 23 KB -
I got data from OTF in SAPSCRIPT and send by email.
How to change the paper format in SOST tcode from X_65_80 to X_65_255?
I need to change it automatically from abap.
Any suggestion?Hi,
change line size and line count in report.
By default report line size and line count is taken in printer
settings
REgards
amole -
How to change the Display Pattern for Decimal Fields dynamically
hi all,
Can any one help me how to change the display pattern for decimal fields dynamically???
Currently I am using z,zzz,zzz,zz9.999 Display pattern for Quantity Field. If the value is blank it is displaying as 0.000 on the Screen. But I don't want this to be printed.
Please help me how to solve this ASAP.
Thanks,
PrabhuHi,
Alternatively you can handle it in the context.
In the context area, click on the quantity. In the bottom, click on the conditions tab, and put a condition
<quan field> NE initial.
So the field will not be printed if there is no value.
Regards,
Vidya Chowdhary A. -
How to change the date format YYYYMMDD to MM/DD/YYYY
Hi ,
How to change the date format YYYYMMDD to MM/DD/YYYY .
Ex : 20071008 to 10/08/2007
Is there any function module for this ??
Regards
RahulHi Sharma,
check the code:
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-031.
PARAMETERS: date1 RADIOBUTTON GROUP rad1 DEFAULT 'X', "SAP date format YYYYDDMM
date2 RADIOBUTTON GROUP rad1, "Date format like aprial31, 2006
date3 RADIOBUTTON GROUP rad1, "Date format like 31 apr,2006
date4 RADIOBUTTON GROUP rad1, "Date format like DD/MM/YYYY
date5 RADIOBUTTON GROUP rad1. "Date format like DD.MM.YYYY
SELECTION-SCREEN END OF BLOCK b2
FORM getmonth .
SELECT mnr
ktx
ltx
INTO TABLE T_month
FROM t247
WHERE spras = 'EN'.
IF sy-subrc NE '0'.
MESSAGE I "Message - Not able to get month values from the table T247
ENDIF.
ENDFORM.
DATA : temp_date(16) TYPE c,
temp1_date(60) TYPE c,
year(4) TYPE c,
daymonth(11) TYPE c,
daymonth1(11) TYPE c,
month(9) TYPE c,
day(2) TYPE c,
mon LIKE t247-ktx,
len TYPE i .
MOVE date TO temp1_date .
CONDENSE temp1_date NO-GAPS.
MOVE temp1_date TO temp_date .
IF date2 EQ 'X'. "The date format is like Aprial 31, 2007
CONDENSE temp_date NO-GAPS.
SPLIT date AT ',' INTO daymonth year.
IF STRLEN( year ) NE '4'.
error = 'X'.
WRITE : 'Invalid date format.'.
ELSE.
daymonth1 = daymonth.
CONDENSE daymonth1 NO-GAPS.
_len = STRLEN( _daymonth1 ).
l_len = 13 - len.
SHIFT daymonth1 RIGHT BY len PLACES.
CONDENSE daymonth1 NO-GAPS.
month = daymonth1.
CONDENSE month NO-GAPS.
SORT t_month BY monthltx.
READ TABLE t_month WITH KEY monthltx = month.
IF sy-subrc <> 0.
error = 'X'.
WRITE : 'Invalid date format.' .
ELSE.
len = STRLEN( month ).
CONDENSE daymonth NO-GAPS.
SHIFT daymonth LEFT BY len PLACES.
day = daymonth.
CONDENSE day NO-GAPS.
CONCATENATE year t_month-monthnumber day INTO o_date.
ENDIF.
ENDIF.
ELSEIF p_date3 EQ 'X'. "The date format is like 31 apr, 2007
CONDENSE temp_date NO-GAPS.
SPLIT i_date AT ',' INTO daymonth year.
IF STRLEN( year ) NE '4'.
error = 'X'.
WRITE : 'Invalid date format.'.
ELSE.
daymonth1 = daymonth.
CONDENSE daymonth1 NO-GAPS.
SHIFT daymonth1 LEFT BY 2 PLACES.
CONDENSE daymonth1 NO-GAPS.
month = daymonth1.
CONDENSE month NO-GAPS.
TRANSLATE month TO UPPER CASE.
SORT t_month BY monthstx.
MOVE month to mon.
READ TABLE t_month WITH KEY monthstx = mon.
IF sy-subrc <> 0.
error = 'X'.
WRITE : 'Invalid date format.' .
ELSE.
CONDENSE daymonth NO-GAPS.
day = daymonth+0(2).
CONDENSE day NO-GAPS.
CONCATENATE year t_month-monthnumber day INTO o_date.
ENDIF.
ENDIF.
ELSEIF p_date4 EQ 'X' OR p_date5 EQ 'X'. "Date format is like DD.MM.YYYY or DD/MM/YYYY
CONDENSE temp_date NO-GAPS.
IF STRLEN( temp_date ) EQ 10.
o_date0(4) = temp_date6(4).
o_date4(2) = temp_date3(2).
o_date6(2) = temp_date0(2).
ELSE.
error = 'X'.
WRITE : 'Invalid date format.' .
ENDIF.
ENDIF.
IF STRLEN( o_date ) NE '8'.
error = 'X'.
WRITE : 'Invalid date format.'.
ENDIf.
ENDFORM. " f0100_conv_date
Reward if helpful.
Regards,
Harini.S -
How to change the Field Symbol, so Adobe Forms takes it as a Table?
Hi guys,
I created an Field Symbol, in a Interface which I use for Adobe Forms. The type of the Field Symbol is STANDARD TABLE, and this field symbol I fill with data from another program.
But the problem is that in adobe forms, this Field Symbol is taken as TEXT FIELD and not as Table... and this shows me a Dump because it can't convert Internal Table to type C (the dump is like that).
What I need, is how to change the Field Symbol, so Adobe Forms takes it as a Table?
I looked at Adobe Form, and found this:
The Type Category of the Field Symbol is DICTIONARY TYPE and I think I need to change it to Internal Table as shown in the right picture.
Does someone have any idea?Hello Taly,
To what i understand your requirement, you need to pass data from Field symbol to internal table in Adobe form.
You have done it correct partially. I have replicated your scenario and steps are below -
1) Create a Z structure
2) Create Z Table Type
3) Create Adobe Interface with Table & Field Symbol. Also do coding as shown to assign the internal table populated in driver program to filed symbol.
4) Design Form as -
5) Code driver as -
*& Report ZR_AF_FS_1
REPORT zr_af_fs_1.
DATA: fm_name TYPE rs38l_fnam,
fp_docparams TYPE sfpdocparams,
fp_outputparams TYPE sfpoutputparams,
it_kna1 TYPE ztt_fs_1.
* Sets the output parameters and opens the spool job
CALL FUNCTION 'FP_JOB_OPEN' "& Form Processing: Call Form
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
* <error handling>
ENDIF.
*&---- Get the name of the generated function module
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' "& Form Processing Generation
EXPORTING
i_name = 'ZAF_FS_1'
IMPORTING
e_funcname = fm_name.
IF sy-subrc <> 0.
* <error handling>
ENDIF.
*-- Fetch the Data and store it in the Internal Table
SELECT kunnr name1 name2 adrnr FROM kna1 INTO TABLE it_kna1 UP TO 15 ROWS.
* Language and country setting (here US as an example)
fp_docparams-langu = 'E'.
fp_docparams-country = 'US'.
*&--- Call the generated function module
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
it_data = it_kna1
* IMPORTING
* /1BCDWB/FORMOUTPUT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
IF sy-subrc <> 0.
* <error handling>
ENDIF.
*&---- Close the spool job
CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
* E_RESULT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* <error handling>
ENDIF.
6) Output -
BR. -
How to change the display of Hierarchy in EVDRE
I want to change the display of the hierarchy as first child and then parent. instead of first parent then child.
I mean when i see the report, I have to see the values for the members and then node total .
How can i achieve this ??
Thanks in advance
Regards
KKYou may find the article I wrote for SAP Financials Expert online of interest since it explains this concept. The link is given below, but you must be a subscriber to view the entire article.
http://www.financialsexpertonline.com/article.cfm?session=&id=4558
[Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
SAP BusinessObjects
Enterprise Performance Management
Regional Implementation Group -
How to change the date format in Sharepoint 2010 to dd MMM yyyy
Hi,
I am looking to change the datetime format with in the modified column from mm/dd/yy to dd MMM yyyy. I dont want to create calculated field with dd MMM yyyy format. I want the actual modified column value to be represented as dd MMM yyyy format.
Thanks for your help in advance.
regards
KalyanI'm not really sure what context you asking to change this for but to change your date time settings -
Go into Site Settings and under 'Central Administration' there is a link to 'Regional Settings'. Click this and you specify the way dates and times are displayed.
I have done this and mine displays as DD/MM/YYYY like you are asking.
My locale is current set to English (United Kingdom) and sort order is general. Even if you're not in the United Kingdom, I can only see this way being your solution as US dates are always set as MM/DD/YYYY.
http://sharepointythings.blogspot.co.uk -
How to change the display name
How do I change the display name I chose?
Anyone came here, refer to this post.
http://h30499.www3.hp.com/t5/Community-Feedback-Suggestions/change-of-display-name/m-p/6667672/highl... -
How to change the date format of Sharepoint 2010 to dd MMM yyyy
Hi,
I am looking to change the datetime format with in the modified column from mm/dd/yy to dd MMM yyyy. I dont want to create calculated field with dd MMM yyyy format. I want the actual modified column value to be represented as dd MMM yyyy format.
Thanks for your help in advance.
regards
KalyanPlease ask your question in the SharePoint 2010 forum and not in this pre-SharePoint 2010 forum.
SharePoint 2010 - General Questions and Answers
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010general/threads
SharePoint 2010 - Setup, Upgrade,Administration and Operation
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/threads
SharePoint 2010 - Using SharePoint Designer, Infopath, and other customization
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/threads
SharePoint 2010 - Using Visual Studio with SharePoint and other programming
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/threads
Dirk Van den Berghe
Maybe you are looking for
-
My husband and I each have an IPhone 6. We are using the same WiFi network and the same Apple ID, the phone numbers are different. When we are at home, both phone receive calls meant for one of the phones. Call can be answered from either phone.
-
Change Alarm / Quality of Shared Variables for I/O Server
How does one set the Bad Status of a Shared Variable in 2009? IE). I have a custom device that communicates via TCP/IP. I wrote my own I/O server that handles this communication and publishes a set of Shared Variables that my Main Application displ
-
Can I use install disk from my Mac mini to upgrade OS on my iMac
I'm currently running OS X v.10.5.8 on my iMac. I'd like to update it to OS X 10.6. I also have a Mac mini that came with 10.6. Can I just use the install disk that came with my Mac mini to install 10.6 on my iMac?
-
Status Bar and Title on Applet
Hi, Is there any way I can get rid of the status bar from the applet that shows the form on the net ??? Also, I want to remove an oracle logo (title) which appears above the window. Anybody knows how to do it ??? PJ. null
-
Browser preferences - web clip incompatible with pop-ups?
Hi, I'm a newbie to iOS & Safari and I've haven't been able to work out the following: I use a web-browser client app for work. Since it is an app (with its own built-in navigation), I'd like to clear up space on my screen and use Safari in Full-Scre