Fonts For numeric fields
Hi all,
In my smart form, I have a table containig columns as Material description, Quantity,Unit & Amount . While Printing smartform, data is not coming properly. Means, material description,Unit 's data are printing at upper part of table cell & quantity, Amounts are printing a bellow part table cell....this is my problem ....i need to diaply data in same line.....can any one please help me....:-(
For this i have used smart styles...
Thnaks In Advance
Hi..
(C) indicates the compression of blank spaces, out of the following text formatting options available in smartforms:
&symbol(Z)& Omit Leading Zeros
&symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
Did it solve your purpose?
Regards,
Karthik
Similar Messages
-
OBIEE Presentation Services : Default formatting for numeric fields
Hello all.
I need help in setting default formatting for numeric fields in criteria. If a user adds an numeric field, it does not have any formatting associated with it. I want to know how do you set default formatting (for example if user adds sales measure it should appear in default format like $1,000 or even with decimal places).
Please help.
Thank you.Hi,
1) We have so many subject areas. If we select "system wide default for this data type", is this change going to reflect in all subject areas.No should do this subject area wise.
2) Will this effect if we migrate from dev to prod environment.Yes it will effect.
I hope u will follow this to-
http://forums.oracle.com/forums/ann.jspa?annID=939 :)
Regards,
Srikanth -
Need help for "Numeric field Overflow" error in excel 2003.
Hello,
a friend of mine have a problem exporting Business Objects 5.1.8 to excel 2003 (turning on windows 2000).
Each time she want to export her reporting in excel format (.XLS), she obtain a "Numeric field Overflow (3349)" error.
So, she export in .CSV format, but it's not easy to use for her following tasks.
What could she do ?
Does she do an "update" to newer version of B.O., or there are a solution at her problem ??
Thanks in advance.
Nicolas
P.S.: I searched for solution on this forum, but found nothing.
Edited by: Nicolas Kowarski on Sep 28, 2008 10:16 PMHello Nicolas,
Please post this query to the [Legacy Products|SAP BusinessObjects BI Legacy Products; forum.
That forum is dedicated to topics related to legacy products such as Business Objects Enterprise 5.x and 6.x.
The forum is monitored by qualified technicians and you will get a faster response there.
Also, all Legacy Product queries remain in one place and thus can be easily searched in one place.
Thanks a lot,
Falk -
I'm fairly new to LiveCycle, I've used it to make forms for a bit, but am now hoping to make the forms much more advanced. I'd like to know the best way to set a value range/parameter for a numeric field? I want the filler to be restricted to a range of $300 to $10,000 and if they try to enter below or above that value they would receive an error message. I've looked at all the beginner material and am trying to get introduced to FormCalc and/or JavaScript but not fully comprehending the best/complete method (any guidance on where to start is also greatly appreciated).
Thanks, Edif (((300 < this.rawValue) && (this.rawValue < 10000)) || (this.rawValue == null)){
true
} else {
this.rawValue = null;
app.alert("Please enter a value between 300 and 10.000")
I changed some things though... ^^
If you want 300 / 10 000 to be true too then set <= instead of <.
You can also change the app.alert message as you want.
If you don't add the null in the beginning you might get an error message if it's on the validate event. If it's in the exit there shouldn't be a problem...
Though this is just a little different from Paul's original solution. -
How to define the format for numeric field ?
Hello
I have Amount field and I would to define the format to be ( XX.XXX,000 )
How can I do this ??
I'm new in ADF and need your help ..
rgrds
Edited by: moh3li_pal on Mar 1, 2010 8:05 AMi have the same problem i try with pattern "###,###.##" but the application adf is the inverse "###.###,##" , this a bug or the pattern errornious.??Hi Joaquin. This is not a bug, although this is a little difficult to explain without face-to-face communication :D The confusing thing here is the difference between the 'special pattern characters' and actual output characters (which are chosen based on your locale).
If you check the Java DecimalFormat class (which provides the rules for formatting) you'll see the following:
Using , in the pattern = Grouping separator
Using . in the pattern = Decimal separator or monetary decimal separator
According to your locale, the grouping separator is '.' and the decimal separator is ','. So the pattern you have specified does dictate that you should get the result you have found.
You either need to change your locale settings (best option) or cheat by switching the , and . in your pattern. -
Hi all!!
I have a requirement to somehow intensify some of fields. For example, make them in bold.
I am talking about fields for attributes STRUCT.LASTNAME, STRUCT.FIRSTNAME of HEADER context node of BP_HEAD/AccountDetails view.
Is this possible? Any suggestions?It's possible to totaly redefine bsp elements using chtmlb form iterator. Some information in this thread: How to display the link dynamically on placing the cursor on a field?
-
Edit Size for Numeric fields - 2007 vs. 2005
Hi,
I set up a user-defined field with VB code in 2005 with an edit size of one; no problem. The same code in 2007 fails saying that the field size deviates from legal range [1...11]. The "1" I am using is in the range.
Any ideas?
Thx, mikeDear
The UserFieldsMD.Size property is the actual size of the field in the
database and is set automatically based on the value set in the
UserFieldsMD.EditSize property. You should not assign any value to the
Size property.
So in your code, replace
uf.Size = 1;
with
uf.EditSize = 1;
best regards,
xiaodan an -
How to embed font in Form Field
Hi All,
I have created Form with few fields,
I have used Chinesh licience font in form field and content; and i embeded the font in the pdf.
But, the font which i embeded is not appearing in the fields, and it's taking default "arial" instead of embeded(chinesh) font when i distribute the form to public users.
Those public has different OS windows/mac and different acrobat version, when i check Document Properties/Fonts/ the font are embeding with pdf
I know, If font not existing in local system, it would go to Arial, but i embeded the licienced font.
Why embeded font not supporting particularly in FormField?
I'm using Acrobat X Pro,
Please help to sove this issue.
Thanks in adv.
Cheers,
SaranNormally when you choose a non-base-14 font for a field, the entire font will get embedded so it can be used with the fields. This is separate from any font embedding for regular text content in the PDF. But in the case of asian fonts, I don't think Acrobat will embed asian fonts for use with fields since they can be quite large.
Adobe distributes the Asian and Extended Language Font Pack so that users can fill forms, comment, etc. with the asian fonts it includes: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5508
Here's a bit more info: http://help.adobe.com/en_US/acrobat/X/pro/using/WS08EC9A35-484E-4ceb-B92A-9FADBC4CB267.w.h tml -
Disable typing of non-numeric characters for numeric item
Hi,
For numeric fields, Oracle Forms checks the entry after the user tries to move out of the item.
But, the requirement is to disable the typing of non-numeric keys when entering data in a numeric item.
pls tell me how to achieve this..
regards,
Asim.Hi Asim,
You can achieve this by using a PJC (or else you could try using some PL/SQL Code in the KEY-PRESSED Trigger or so.. but not sure).
There is a demo available on OTN on how to achive this using PJC
http://www.oracle.com/technology/sample_code/products/forms/index.html
You could see a Key Filter demo under JavaBeans/PJC Samples (all available as part of the Forms demos).
HTH.
Regards,
Arun -
Display pattern of numeric field in adobe reader ver 8 and 9.
I have added a text field to my form and have set the following properties:
Type: Numeric field
Limit length to visible area: checked (so that it accepts upto 9 digits)
display pattern: zzz9
data pattern: zzz9
data format: Integer
When I type "123456789" in the field, adobe reader version 7 and 9 are adding commas to the number and are displaying it as "123,456,789" while adobe reader 8 displays it the way i want "123456789"
Appreciate if someone can quickly provide some guidance here.The issue is that the pattern that you are applying from the field cannot be applied to your input so the default pattern for numeric fields is being applied (hence the 123,456,789). If you make sure that your numeric field is set for integer (Binding tab/Data Format). Then set the display pattern to num{zzzzzzzz9}. It will work.
The default pattern is held in the XDP template. It is created based on your locale. If you click on the XML Source tab (between Preview and Master Pages - if it is not visible then you can make it visible on the View/XML Source menu)then do a serach ctrl-F for numberPattern you will see where it is defined in the template. If you modify this one then it will only be applied for this form. Any new forms will revert back to the old pattern. -
Wildcard search for numeric values using select ?
Hi,
I want do wildcard search for numeric fields of the table.
For charcter/string i have used - select * from XX_TABLE where param1 like 'SS%'. But this query doesnt work when para1 is numeric. Please let me know first whether this is possible ? if yes how to achieve it ?
Thanks in advance,
ShrinivasHi Jack,
The numeric field is of 8 digits, so when i give search critera as '66', it should return values 66000000, 660000, 6600 etc. so i was not able to give between some range. I also tried storing all these values in internal table and the segregate the values it contains '66*'. This worked well but requires lot of coding effort.Please suggest if you guys have any better method ?
Thanks,
Shrinivas -
Numeric field validation in Report Field
How we can have the validation check for numeric field in report ?
please help me on thisHi,
Try creating a function that returns either 0 or 1 depending on whether or not the value is numeric and then handle the result accordingly.
Something like:
CREATE OR REPLACE FUNCTION IS_NUMBER(p_string IN VARCHAR2) RETURN NUMBER
AS
vNUMBER NUMBER;
BEGIN
SELECT TO_NUMBER(p_string) INTO vNUMBER FROM DUAL;
RETURN 1;
EXCEPTION WHEN OTHERS THEN
RETURN 0;
END;Then create a PL/SQL process that loops through your data. Something like:
BEGIN
FOR x IN 1..APEX_APPLICATION.G_F01.COUNT
LOOP
IF IS_NUMBER(APEX_APPLICATION.G_F01(x)) = 0 THEN
... do something if the value is not numeric ...
END IF;
END LOOP;
END;Andy -
What is the initial value for a numeric field ??
Can someone tell me what the INITIAL VALUE FOR A NUMERIC FIELD is ?? Thank you
Rod.Using the following...
class MyClass
int myvar1; // Default initial value
int myvar2 = 3; // Default initial value and default value
MyOtherClass myclass1; // Default initial value
void doit()
int mylocal1; // No value
MyOtherClass myclass2; // No value
All number member variables, like myvar1 start off with andefault initial value which is zero. For booleans this is false. Object reference variables, like myclass1, have a null value.
All local numeric variables are considered undefined. So mylocal1 and myclass2 are undefined. Before you can use them you must explicitly provide a value.
Finally note that myvar2 will have two values during class instantiation. Initially it will have a value of zero. Sometime later it will have the value of 3. (When that happens is very definitely outside the scope of what this forum covers. If you want to know then ask in the advanced forum.) -
Total for a Numeric field in ALV Grid display
Hi all,
I am not getting the Total for a Numeric field in ALV Grid output. What might be the problem.
Regards,
Balavardhan.KCheck this code for subtotals and totals..
REPORT ZYFI_REPT007
NO STANDARD PAGE HEADING
LINE-SIZE 300
LINE-COUNT 50
MESSAGE-ID ZYFI.
TABLES : COOI, " Commitments Management: Line Items
LFA1, " Vendor master (general section)
VBEP,
RKPLN.
TABLE TYPES AND INTERNAL TABLES *
DATA : BEGIN OF TYP_COOI ,
OBJNR LIKE COOI-OBJNR,
SAKTO LIKE COOI-SAKTO,
MEGBTR LIKE COOI-MEGBTR,
MEINH LIKE COOI-MEINH,
WKGBTR LIKE COOI-WKGBTR,
REFBN LIKE COOI-REFBN,
RFPOS LIKE COOI-RFPOS,
SGTXT LIKE COOI-SGTXT,
BUDAT LIKE COOI-BUDAT,
LIFNR LIKE COOI-LIFNR,
END OF TYP_COOI.
DATA : BEGIN OF TYP_LFA1 ,
LIFNR LIKE LFA1-LIFNR,
NAME1 LIKE LFA1-NAME1,
END OF TYP_LFA1.
DATA : BEGIN OF IT_OUTTAB OCCURS 0,
OBJNR LIKE COOI-OBJNR,
SAKTO LIKE COOI-SAKTO,
MEGBTR LIKE COOI-MEGBTR,
MEINH LIKE COOI-MEINH,
WKGBTR LIKE COOI-WKGBTR,
REFBN LIKE COOI-REFBN,
RFPOS LIKE COOI-RFPOS,
SGTXT LIKE COOI-SGTXT,
BUDAT LIKE COOI-BUDAT,
LIFNR LIKE COOI-LIFNR,
NAME1 LIKE LFA1-NAME1,
END OF IT_OUTTAB.
DATA : IT_COOI LIKE TYP_COOI OCCURS 0 WITH HEADER LINE,
IT_LFA1 LIKE TYP_LFA1 OCCURS 0 WITH HEADER LINE.
*-- ALV Declarations
TYPE-POOLS SLIS.
DATA: IT_EVENTS TYPE SLIS_T_EVENT,
GS_EVENT TYPE SLIS_ALV_EVENT,
wa_fldcat type slis_fieldcat_alv.
DATA: S_LAYOUT TYPE SLIS_LAYOUT_ALV,
GT_PRINT TYPE SLIS_PRINT_ALV.
DATA: IT_FLDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA: IT_SORT TYPE SLIS_T_SORTINFO_ALV.
DATA: V_REPID LIKE SY-REPID.
SELECTION SCREEN *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_KOKRS FOR COOI-KOKRS NO-EXTENSION NO INTERVALS,
" Controlling Area
S_BUKRS FOR COOI-BUKRS NO-EXTENSION NO INTERVALS,
" Company code
S_GJAHR FOR COOI-GJAHR NO-EXTENSION NO INTERVALS,
" Fiscal Year
S_OBJNR FOR RKPLN-AUFNR MATCHCODE OBJECT ORDE,
" Internal order
S_SAKTO FOR COOI-SAKTO MATCHCODE OBJECT KART,
" Cost Element
S_BUDAT FOR COOI-BUDAT, " Debit Date
S_LIFNR FOR COOI-LIFNR. " Vendor
SELECTION-SCREEN END OF BLOCK B1.
S T A R T O F S E L E C T I O N *
START-OF-SELECTION.
*-- Read data
PERFORM GET_DATA.
E N D O F S E L E C T I O N *
END-OF-SELECTION.
*-- Process the data and prepare the output data
PERFORM CALCULATE_FINAL_INFO.
*--Display Report output
PERFORM DISPLAY_REPORT.
FORM CALCULATE_FINAL_INFO *
Process the data and prepare final internal table *
FORM CALCULATE_FINAL_INFO.
DATA : L_OBJNR LIKE COOI-OBJNR.
SORT IT_LFA1 BY LIFNR.
DELETE ADJACENT DUPLICATES FROM IT_LFA1 COMPARING LIFNR.
LOOP AT IT_COOI.
L_OBJNR = IT_COOI-OBJNR+2(20).
SHIFT L_OBJNR LEFT DELETING LEADING '0'.
IF L_OBJNR IN S_OBJNR.
READ TABLE IT_LFA1 WITH KEY LIFNR = IT_COOI-LIFNR.
IF SY-SUBRC EQ 0.
IT_OUTTAB-NAME1 = IT_LFA1-NAME1.
ENDIF.
MOVE-CORRESPONDING IT_COOI TO IT_OUTTAB.
CLEAR IT_OUTTAB-OBJNR.
IT_OUTTAB-OBJNR = L_OBJNR.
APPEND IT_OUTTAB.
CLEAR IT_OUTTAB.
CLEAR IT_LFA1.
CLEAR L_OBJNR.
ENDIF.
ENDLOOP.
ENDFORM.
*& Form GET_DATA
Fetch the Data from the table COOI and LFA1
FORM GET_DATA.
SELECT OBJNR
SAKTO
MEGBTR
MEINH
WKGBTR
REFBN
RFPOS
SGTXT
BUDAT
LIFNR
FROM COOI
INTO TABLE IT_COOI
WHERE BUDAT IN S_BUDAT
AND LIFNR IN S_LIFNR
AND KOKRS IN S_KOKRS
AND BUKRS IN S_BUKRS
AND GJAHR IN S_GJAHR
AND SAKTO IN S_SAKTO.
IF SY-SUBRC EQ 0 .
Get the Vendor name from LFA1
SELECT LIFNR
NAME1
FROM LFA1
INTO TABLE IT_LFA1
FOR ALL ENTRIES IN IT_COOI
WHERE LIFNR EQ IT_COOI-LIFNR.
ELSE.
MESSAGE I999 WITH TEXT-013.
ENDIF.
ENDFORM. " GET_DATA
*& Form DISPLAY_REPORT
Display the output
FORM DISPLAY_REPORT.
PERFORM BUILD_CATALOG.
PERFORM FRM_PREPARE_EVENT_LIST TABLES IT_EVENTS.
IF NOT IT_OUTTAB[] IS INITIAL.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = V_REPID
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IT_FIELDCAT = IT_FLDCAT
IT_SORT = IT_SORT
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = IT_OUTTAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ELSE.
MESSAGE I999 WITH TEXT-013.
ENDIF.
ENDFORM. " DISPLAY_REPORT
*& Form BUILD_CATALOG
Build the Field catalog for the ALV Report
FORM BUILD_CATALOG.
DATA: V_INDEX LIKE SY-TABIX.
V_REPID = SY-REPID.
DATA: LS_SORT TYPE SLIS_SORTINFO_ALV.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = V_REPID
I_INTERNAL_TABNAME = 'IT_OUTTAB'
I_INCLNAME = V_REPID
CHANGING
CT_FIELDCAT = IT_FLDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 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.
READ TABLE IT_FLDCAT WITH KEY FIELDNAME = 'WKGBTR'
TABNAME = 'IT_OUTTAB' INTO WA_FLDCAT.
IF SY-SUBRC EQ 0.
WA_FLDCAT-DO_SUM = 'X'.
MODIFY IT_FLDCAT FROM WA_FLDCAT INDEX SY-TABIX.
ENDIF.
READ TABLE IT_FLDCAT WITH KEY FIELDNAME = 'OBJNR'
TABNAME = 'IT_OUTTAB' INTO WA_FLDCAT.
IF SY-SUBRC EQ 0.
WA_FLDCAT-SELTEXT_L = 'Order'.
WA_FLDCAT-COL_POS = 1.
WA_FLDCAT-DDICTXT = 'L'.
MODIFY IT_FLDCAT FROM WA_FLDCAT INDEX SY-TABIX.
ENDIF.
LS_SORT-FIELDNAME = 'OBJNR'.
LS_SORT-SPOS = 1.
LS_SORT-UP = 'X'.
LS_SORT-SUBTOT = 'X'.
APPEND LS_SORT TO IT_SORT.
ENDFORM. " BUILD_CATALOG
*& Form FRM_PREPARE_EVENT_LIST
Build the Events
FORM FRM_PREPARE_EVENT_LIST TABLES IT_EVENTS TYPE SLIS_T_EVENT.
CLEAR GS_EVENT.
GS_EVENT-NAME = SLIS_EV_TOP_OF_PAGE.
GS_EVENT-FORM = 'TOP_OF_PAGE_REPORT'.
APPEND GS_EVENT TO IT_EVENTS.
ENDFORM. " FRM_PREPARE_EVENT_LIST
TOP OF PAGE
FORM TOP_OF_PAGE_REPORT.
CALL FUNCTION 'Z_YREPORT_HEADER'
EXPORTING
DL_TITLE = SY-TITLE
DL_REPID = SY-CPROG
DL_LINSZ = SY-LINSZ
EXCEPTIONS
OTHERS = 1.
ENDFORM. " FRM_TOP_OF_PAGE_REPORT
*& Form USER_COMMAND
Drill Down Functionality to Call the Transaction ME23
FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM
P_SELFIELD TYPE SLIS_SELFIELD.
DATA : L_INDEX LIKE SY-INDEX,
L_REFBN LIKE COOI-REFBN.
L_INDEX = P_SELFIELD-TABINDEX. " holds the selected table index
CLEAR L_REFBN.
CASE P_UCOMM.
*-- On Double Click
WHEN '&IC1'.
CLEAR L_REFBN.
*-- Read the Current Line
READ TABLE IT_OUTTAB INDEX L_INDEX.
IF SY-SUBRC EQ 0.
L_REFBN = IT_OUTTAB-REFBN.
IF NOT L_REFBN IS INITIAL.
*-- Set the BES Paramater Id to the Current line Purchase Order Number
SET PARAMETER ID 'BES' FIELD L_REFBN.
*-- Call the Transaction Purchase Order Display with the above PO Number
CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.
ENDIF.
ELSE.
MESSAGE E999 WITH TEXT-014.
ENDIF.
ENDCASE.
ENDFORM. " USER_COMMAND -
Script for validating Text fields or numeric fields
I'm looking for a simple script that will check the entered data in a specific field.If i enter numbers in the name/last name field i should get a pop up message that entering numbers in this field are not allowed.
(And vice versa regarding numeric fields).
What is the script for that ?Hi,
try this:
//var reg = /^\d+$/; // checks whether input contains ONLY digits
var reg = /\d+/; // checks whether input contains digits AND letters
var check = reg.exec(xfa.resolveNode("#subform[0].#field[0]").rawValue);
if (check == null)
app.alert("Everything's fine!");
else
app.alert("Entering digits is not allowed!");
You may want to replace
#subform[0] with the name of the subform the field to check is located in and
#field[0] with the name of the field to check for digits.
Also, you may want to select any of the regular expressions, which fits best your needs. See comment in the above code-fragement for further information.
Regards,
Steve
Maybe you are looking for
-
Add Header and Footer in PDF-presenation, Photoshop CS3
Hi How is it possible to make at Header and Footer in a PDF-Presentation generatet in Photoshop CS3 without placing it on every image. Is there a setting (I have not found it) where you can predefine this? Best regards/Jean
-
Error in updating and displaying ouput in JSP
Hi im doing project using jsp files.In part of my project there is vote page and vote result page. my vote_page.jsp <%@ page import="java.util.*" %> <%@ page import="java.sql.*" %> <%@ page import="java.text.*" %> <%@ page import="java.sql.Date" %> <
-
Install SCSI HDD on Sparc 10 running Solaris 8
Hi. I'm trying to install a (secondary) 4.55 Gig Seagate hard disk drive on my box, using the included SCSI controller card. I've tried both self- and non-terminating but when I boot -r, it hangs for ages and the format command doesn't recognise the
-
LMS 4.2.5 Netconfig changing port config based on port settings
I am trying to use netconfig to change the port config on my switches. I want to use an adhoc rule to determine if the port already is configured for 802.1x (authentication port-control auto) authentication and then modify those ports to "authenticat
-
Flexible Planning:User defined Key Figures
We had created custom fields and included in custom table to be used in field catalogue.Canwe view this table as source table ?If so what has tobe done to view this as source table?