Positive Value only Display or Edit Pattern
Hello, could someone please explain how I can prevent a negative result in a calculation field? i.e., a result less than zero. In other words, how can I ensure that users only enter positive values in a numeric field, and that the subsequent simple "subtract" calculation will also remain positive?
Harry
THANKS NASSIA, this works for disallowing negatives by force, however it gives me script failed alert.
Would you know how to suppress "Script Failed" alerts, such as this:
Script failed (language is formcalc; context is
xfa[0].form[0].form1[0].SF_CalculationTable[0].acview[1])
script=(ac[1] / tr[1]) * 100
Error: arithmetic over/underflow.
. (+ 25 more...)
These seem to be only happening because the field is not yet populated, (except with zeros). How do I suppress this error, because the form works fine.
Similar Messages
-
Error ! Specify positive values only
Dear Gurus,
Error : Specify positive values only
Message no. 00126
Is it possible to create Negative value in PO line at item level? through condition type or any other method?
But, Over all PO at header level will be positive. I dont want to go through Return PO option
Please advice
Thanks
RSHi,
Why the value to be negative. I think you cant enter negative value for a material. Kindly explain me your scenario.
Regards,
Prasath -
Display and Edit Patterns in XML Tags
Using LiveCycle E2 V9.
The display and or Edit Patterns are not reflected in the XML of a submitted form.
While these display properly on the Adobe form on-screen, e.g.
$150,000.00 when the fields are are submitted the XML tag as reflects 150000.000000
Please advise whether there is something that I am doing incorrectly and or a fix for this?
Thank you!Formatted displays for numbers is never the same as the actual field value. This approach allows a user to see a formatted numeric value but the data remains as a number in floating point, integer, or binary value for further calculations as a number. If this were to change, then one would need to parse the numeric value as a character string back to a numeric value before performing any calculation.
There are specific forums for LiveCycle Designer. -
ME51N Userexits/BADI --- Pop values(only display 3) based on PR Doc type
Hi,
This functionality nees to incorporate in ME51N.
We have Purchase requisition document type "PRD X".[There are other 3 document types also].
If we select document type "PRD X" while creating PR, In Item table [in ME51N] control we have a column called "Asset Assignment Category". Here I need olny 3 popup values if I go for F4 [to select any one from list of values].
That mesans :-
1> I should able to see only 3 popup values for "Asset Assignment Category" column when I press F4, if I select purchase requisition document type "PRD X".
2> I should able to see all 18 popup values for "Asset Assignment Category" column when I press F4, If select purchase rezuisition document type other than "PRD X".
So For the above requirement what is suitable user exit / BADI Or how can we achive? Does it possible with configuration?
Please reply ASAP.
Thanks in advance.
Gupta.hi Alan,
1)Drag your Pricing Cond and Billing Doc in Rows.
2) In columns
2.1 Right click-> New Structure->Right Click-> New Selection. Names as "KF1".
now Drag your Kiy figure Amount, Pricing Cond and Bill doc.
Now Double click on Pricing Cond -> Drag 'ABC' in rite panel. press ok.
Now Double click on Billing Doc and Drag '1','2','3' in right panel. Now right click on '1'->choose exculde from selection.similarly for '2' and '3'.
2.2) Again Right click the New structure and create a New selection "KF2"
Now Drag your Kiy figure Amount, Pricing Cond and Bill doc.
Now double click on Prciing Cond and drag value 'ABC' in right panel and exculde from selection.press ok.
3) Again Right click the New structure and create a New Formula "AMount". Double that "KF1" (see bottom in panel)
then press "+" sign and again double click on "KF2".
Basically adding "KF1" and "KF2".
4) Right click on "Kf1"-> hide it.Same for "KF2".
5)save ->execute.
Hope i m clear.
Regards,
San! -
Display only positive values for a particular Keyfigure
Hi..
(Sorry, I accidentally posted this also in Datawarehousing forum, actually it related to BeX forum).
For a particular column(keyfigure) in my report, the user wants to display only positive values.
I used the formula from the one of the forums
(Keyfig > 0)* Keyfig.
This displays only positive values in the column as required. But, the result for this column is also affected. As the result is negative, it shows, zero in the result for this column.
Is there a way in which the result will not be affected by the formula?
I went into the properties of the particular keyfigure and chose Calculate Result as -> Summation.
It throws out the following error message
'Calculating result as...' was not executed
Message no. BRAIN141
Diagnosis
The function 'Calculate Results as ...' could not be used in all
instances.
The recalculation of a result cell always occurs based on the set of
detailed cells subordinated to this cell. This is the most detailed
level of the drilldown. Therefore it is not posible to recalculate in
hierarchical lists. The calculation of a results cell is not performed
if a cell or column with an expand symbol is assigned beneath it.
Otherwise the newly calculated result is changed every time one of its
lower-level nodes is expanded. This is not supported for technical
reasons and would also only confuse users.
Note, however, that calculating with "Suppress Results" is always
executed because the restriction described above does not apply in this
case.
NOTE:
The query shows the keyfigure values for a selected title, for profit center and territory hierarchies.
Any suggestions would be greatly appreciated.
Thanks,
Sai.Hi Deepu,
Thanks for the reply. I tried with ur formula.
LEAF(keyfig) gives all values "zero" for that particular column including the result.
NOT LEAF(keyfig) gives all values "one" for that particular column including the result.
So, ur formula gives the same values as of the present column values.
I tried condition, but it's not working...it says the following errors...
There is a condit. on Title, results row suppress. active on Profit Center
(conditional
Message no. BRAIN144
Diagnosis
Characteristic Title has an output condition and the 'Suppress Results
Cells' property is active for Profit Center. This generally leads to an
incomprehensible output list.
System response
As soon as an output condition is defined for a characteristic (here
Title), the system calculates the corresponding result cells and applies
the output condition. If a result cell of this type is later deleted by
the condition, all the lower-level detail and result cells in its
drilldown are suppressed. Because the result cell is suppressed the
Title rows are then omitted from Profit Center.
In extreme cases this can lead to an entirely empty list being
displayed, although the single rows or columns would be displayed if the
condition were deactivated.
Procedure
Check the query settings, especially results row suppression and the
output conditions.
Procedure for System Administration
You can deactivate this message Brain 144 with transaction RSRT1.
There is a condit. on Profit Center, results row suppress. active on
Territory as in SPL (conditional
Message no. BRAIN144
Diagnosis
Characteristic Profit Center has an output condition and the 'Suppress
Results Cells' property is active for Territory as in SPL. This
generally leads to an incomprehensible output list.
System response
As soon as an output condition is defined for a characteristic (here
Profit Center), the system calculates the corresponding result cells and
applies the output condition. If a result cell of this type is later
deleted by the condition, all the lower-level detail and result cells in
its drilldown are suppressed. Because the result cell is suppressed the
Profit Center rows are then omitted from Territory as in SPL.
In extreme cases this can lead to an entirely empty list being
displayed, although the single rows or columns would be displayed if the
condition were deactivated.
Procedure
Check the query settings, especially results row suppression and the
output conditions.
Procedure for System Administration
You can deactivate this message Brain 144 with transaction RSRT1.
Thank you very much.
Regards,
Sai. -
How to get only positive value from 0DEB_CRE_LC
Hi to all,
I am doing ageing for AR.(0FI_AR_4)
In DSO or CUBE i need to diaply only positive value for 0DEB_CRE_LC accodring to every customer customer.
only NET DEBIT VALUE should display.
example1:
0CREDIT_LC 0DEBIT_LC 0DEB_CRE_LC
CUSTOMER1 100 0.00 100 -
CUSTOMER1 0.00 200 200
CUSTOMER1 0.00 200 200
total of 0DEB_CRE_LC = 300 " only this value should be displayed at DSO or CUBE
example2:
0CREDIT_LC 0DEBIT_LC 0DEB_CRE_LC
CUSTOMER2 100 0 100-
CUSTOMER2 0 0 0
CUSTOMER2 0 0 0
total of 0DEB_CRE_LC = 100- " this value should be filter out at DSO or CUBE
example3:
0CREDIT_LC 0DEBIT_LC 0DEB_CRE_LC
CUSTOMER3 200 200-
CUSTOMER3 0 100 100
toatl 0f 0DEB_CRE_LC = 100- " this value should be filter out at DSO or CUBE level
So when i total at 0DEB_CRE_LC at DSO or CUBE level only example1 value should displayed and example2 and example3 sould be filter out at DSO or CUBE level.
please can any one tell me the logic, what should i do to achieve this result.
I shall be thankful to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Feb 3, 2011 4:14 PM
Edited by: pavneet rana on Feb 3, 2011 4:18 PM
Edited by: pavneet rana on Feb 3, 2011 4:20 PMThanks for reply,
i have created start routine between 0fi_ar_4 to DSO.
and used your code.
but still data at DSO is coming incorrect.
CREDIT DEBIT 0DEB_CRE_LC
C1 694,724.4 0.00 694,724.46-
C1 675,000.0 0.00 675,000.00-
C1 0.00 864,333.00 864,333.00
TOTAL = 505,391.46- for 0DEB_CRE_LC
but i create end routine at DSO .
CREDIT DEBIT 0DEB_CRE_LC
C1 0 100 100
C1 0 50 50
TOTAL = 150 for 0DEB_CRE_LC
but all credit amount for all customer is 0 and not include in 0DEB_CRE_LC, so still result is incorrect.
Please give me some solution , so i can achieve result.
I think this can be done by Routine itself.
i have writen routine like that.
DATA: WA LIKE LINE OF RESULT_PACKAGE.
DATA: l_v_customer type /BI0/OICUSTOMER.
DATA: l_v_total TYPE /BI0/OIDEB_CRE_LC.
Sort RESULT_PACKAGE by CUSTOMER .
l_v_total = 0.
loop at RESULT_PACKAGE INTO WA.
if sy-tabix = 1.
l_v_customer = WA-CUSTOMER.
endif.
if l_v_customer = WA-CUSTOMER.
l_v_total = l_v_total + wa-DEB_CRE_LC.
else.
if l_v_total LT '0'.
Delete RESULT_PACKAGE where CUSTOMER = wa-CUSTOMER.
endif.
l_v_customer = wA-CUSTOMER.
l_v_total = wa-DEB_CRE_LC.
endif.
endloop.
please rectified is in correct.
I shall be thankful to you for this.
Regards
Pavneet Rana
Edited by: pavneet rana on Feb 4, 2011 10:32 AM -
Setting an Edit pattern does not allow inputting values
I'm using a custom field (Phone Number North America) in a designer form. My users want to be able to edit and display value in (999) 999-9999 format. So I set the Display and Edit formats to text{'('999')' 999-9999}. Setting this pattern only displays the value in this format, but when I go to edit the field for the first time (when the field is blank), it allows inputting without any format. And when I want to edit an inputted value in the field, it does not even allow to change anything. It seems to be readonly/locked.
What I want to be able to do is that the field must allow the user to input values in the format that I set in the Edit pattern box. This must work even if the field has a phone number value already in it.
Any help will be highly appreciated.
FYI...My Adobe LiveCycle Designer ES2 version is: 9.0.0.2.20101008.1.734229 Cipher: 128-bit.
Thanks in advance...Hi Mahabub,
Keep the below script on exit event of the Phone Number dnt select any pattern for the field.
// Regular Expression for the phone number (999) 999-9999
var vPattern = /^(\(\d{3}\) \d{3}-\d{4})$/;
if (vPattern.test(this.rawValue))
app.alert("Matched");
else
app.alert("not matched")
This gives you Error message if the entered value is not matched with the pattern.
Please let me know if you need any more info.
Vjay -
How to display field value only once in REUSE_ALV_GRID_DISPLAY
hi experts,
i am using REUSE_ALV_GRID_DISPLAY, for alv outpur display.but i want one of the field in output ,not to display the value which is of same, it have to be displayed only once, I mean i have a number which contains multiple line items corresponding, here i want to display the field value only once when it is repeating , for the same header number, how can i achieve itHi,
check the sample code,
REPORT Z_ALV.
Database table declaration
TABLES:
sflight.
Typepool declaration
TYPE-POOLS:
slis.
Selection screen elements
SELECTION-SCREEN BEGIN OF BLOCK blk_1 WITH FRAME TITLE text-000.
SELECT-OPTIONS:
s_carrid FOR sflight-carrid.
SELECTION-SCREEN END OF BLOCK blk_1.
Field string to hold sflight data
DATA:
BEGIN OF fs_sflight ,
carrid TYPE sflight-carrid, " Carrier Id
connid TYPE sflight-connid, " Connection No
fldate TYPE sflight-fldate, " Flight date
seatsmax TYPE sflight-seatsmax, " Maximum seats
seatsocc TYPE sflight-seatsocc, " Occupied seats
END OF fs_sflight.
Internal table to hold sflight data
DATA:
t_sflight LIKE
STANDARD TABLE
OF fs_sflight .
Work variables
DATA:
t_fieldcat TYPE slis_t_fieldcat_alv,
fs_fieldcat LIKE
LINE OF t_fieldcat.
*START-OF-SELECTION
START-OF-SELECTION.
PERFORM get_data_sflight. " Getting data for display
PERFORM create_field_cat. " Create field catalog
PERFORM alv_display.
*& Form create_field_cat
Subroutine to create field catalog
There is no interface paramete
FORM create_field_cat .
PERFORM fill_fieldcat USING 'Carrier Id' 'CARRID' '2'.
PERFORM fill_fieldcat USING 'Connection No' 'CONNID' '1'.
PERFORM fill_fieldcat USING 'Flight Date' 'FLDATE' '3'.
PERFORM fill_fieldcat USING 'Maxm.Seats' 'SEATSMAX' '4'.
PERFORM fill_fieldcat USING 'Seats Occ' 'SEATSOCC' '5'.
ENDFORM. "create_field_cat
*& Form fill_fieldcat
Subroutine to fill data to field column
-->p_seltext Column label
-->p_fieldname Fieldname of database table
-->p_col_pos Column position
FORM fill_fieldcat USING
p_seltext LIKE fs_fieldcat-seltext_m
p_fieldname LIKE fs_fieldcat-fieldname
p_col_pos LIKE fs_fieldcat-col_pos.
fs_fieldcat-seltext_m = p_seltext.
fs_fieldcat-fieldname = p_fieldname.
fs_fieldcat-col_pos = p_col_pos.
APPEND fs_fieldcat TO t_fieldcat.
CLEAR fs_fieldcat.
ENDFORM. " fill_fieldcat
*& Form get_data_sflight
Subroutine to fetch data from database table
There is no interface parameter
FORM get_data_sflight .
SELECT carrid
connid
fldate
seatsmax
seatsocc
FROM sflight
INTO TABLE t_sflight
WHERE carrid IN s_carrid.
ENDFORM. " get_data_sflight
*& Form alv_display
Subroutine for ALV display
There is no interface parameter
FORM alv_display .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = t_fieldcat
TABLES
t_outtab = t_sflight
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " alv_display
End of code -
How to display positive value with a trailing plus sign
I want to display positive value with a trailing plus sign and negative value with a trailing minus sign. How can I do it? Is there any character in custom format for this? I don't want to convert number to text and use case statement because I need two decimal places and thousands separator.
Okay, try this...
You will need to do a "UNION ALL" of three queries, one for positive values, one for zero values, and one for negative values.
In the "negative values" query, do the following:
1) Add a filter on the measure for values "less than 0"
(This will ensure all values are negative.)
2) In the Data Format tab, select "Custom" and type in #,##0.00-
(This will add the trailing negative sign.)
3) In the Edit Formula tab, add the absolute value function, ABS(insert measure here)
(This will take get rid of the default leading negative sign.)
For the "positive values" query, modify the above as follows:
1) Change the filter to "greater than 0"
2) In the Data format, change the custom format to #,##0.00+
Step 3 is not needed since all values are positive.
For the "zero values" query, just add a filter "equal to zero." -
Displaying a positive value in form
I have got a table tblshipping which has got two col named as send_qty,received_qty from where i calculate the quantity.
the thing is some times in the calculation i get a negative value and some times positive i want always the positive value should be displayed to end user
SQL>select sum(send_qty) - sum(received_qty) from tblshiping where matid='1';
i will get say some thing (-5)
in the fom i want to display this (-5) as (5) ....can any1 help me out how this is possible.....
I know changing the order in the query it can be done but again for some condition it will display negative value which i dont it to displayUse ABS
SELECT ABS(SUM(SEND_QTY)-SUM(RECEIVED_QTY)) ... -
Cubeset to only return positive values?
Yet another cube formula question... In Excel 2010, no powerpivot or olap pivottable extensions, this is a pure Excel project.
I am building various cubeset, cubemember, and cubevalue formulas to validate an ETL process.
Question:
I need to create a cubeset that only returns the members of a cube that have positive values for a specific measure. This cubeset will then be one of several cubesets that gets fed into a cubevalue formula that would otherwise exceed the 255 char limit.
I can create a cubeset for the overall measure:
=CUBESET("MyCube","[Measures].[RetailPrice]")
but haven't found the right syntax for limiting results to only those that have positive values, I think it would be something like:
=CUBESET("MyCube","FILTER[Measures].[RetailPrice],[Measures].[RetailPrice]>0")
This syntax actually doesn't return an error, so maybe it is valid syntax... but when I wrap it in a simple cubevalue statement,
=CUBEVALUE("MyCube", A2) where A2 is the Cubeset above, or if I also add date range and other filters,
I get a #Value error, indicating that "the tuple is invalid" per
http://office.microsoft.com/en-in/excel-help/cubevalue-function-HA010342391.aspx?CTT=5&origin=HA010342384
I'm still a newbie with the cubeformula syntax and MDX, so I appreciate any suggestions!Hi Rohit-
The cube has a net value of 1220 for the measure I'm trying to calculate (when I don't filter on > or < zero).
I tried my formula both ways (looking for just positive, and just negative values) and while both work in the standalone cubeset formula, neither return a value when I use it in a cubevalue formula.
My suspicion, other than a syntax error, is that this may have something to do with me trying to filter on the measure value(s), instead of a dimension- which I think must be possible, but again maybe not with this syntax.
Let's assume that we had a total of 1280 in retail price, but due to a few returns, we have a few records that show value of -60. If we were looking at profitability, the 1220 is what matters. If we are looking at "dollars exchanged" as a variable expense
driver of some other measure, then we'd actually want the absolute value of retail price (1280+60 = 1340). I hadn't been able to get the MDX ABS to work, so this was my attempt to grab the positive and negative numbers separately, and then add them to get
the equivalent of ABS.
In this case, slicers aren't a desirable option due to how the report is being constructed (I've used slicers in other reports with cubeformulas, but with Excel 2010 I have to have an extra pivot table to get the slicer value, which then has to get fed into my
cubeform and I'm back at step 1, getting it to work in the cubeformula syntax)
Thanks! -
[ASK] popup return value only able to be displayed in disabled inputtext
Hi,
I'm using Jdev 10.1.3.
I have an inputtext and a commandbutton that triggers its value by selecting it from a popup window.
The problem is the inputtext will be able to display the returned value only when its "disabled" attribute
set to true. I need this inputtext to be enabled. Am i doing something wrong?
This is what I'm doing:
<af:panelGroup layout="horizontal">
<af:inputText value="#{processScope.glCode}" binding="#{productBean.glCodeInputText}" disabled="true"
id="glCodeValue" partialTriggers="dialogPopUpGlCode"
required="true" requiredMessageDetail="Select a GL Code for this Product"/>
<af:commandButton text="..." shortDesc="GL Code List" action="dialog:glCodePopUp" id="dialogPopUpGlCode"
partialSubmit="true" useWindow="true" immediate="true" windowHeight="300" windowWidth="300"
returnListener="#{productBean.onReturnFromSelectGlCodeDialog}">
</af:commandButton>
</af:panelGroup>Backing bean:
public String onReturnFromSelectGlCodeDialog(ReturnEvent returnEvent){
returnGlCodeId = returnEvent.getReturnValue().toString();
if (returnGlCodeId != null) {
PolicyMaintenanceModuleImpl policyMaintenanceModuleImpl = null;
try {
policyMaintenanceModuleImpl = getPolicyMaintenanceModuleImpl();
Product_ParamGlCodeViewImpl paramGlCodeVo = (Product_ParamGlCodeViewImpl)policyMaintenanceModuleImpl.getProduct_ParamGlCodeView();
paramGlCodeVo.setWhereClause("PARAM_GL_CODE_ID = '"+returnGlCodeId+"'");
paramGlCodeVo.executeQuery();
while (paramGlCodeVo.hasNext()) {
Product_ParamGlCodeViewRowImpl row = (Product_ParamGlCodeViewRowImpl)paramGlCodeVo.next();
returnGlCode = row.getGlCode().toString();
finally {
releaseAM(policyMaintenanceModuleImpl);
((AttributeBinding)getBindings().getControlBinding("GlCode")).setInputValue(returnGlCode);
JSFUtil.setProcessObj("glCode",returnGlCode);
return null;
}Please help..T_T
Thanks a lot..Thanks Shay, I've followed your suggestion but with no luck..
<af:selectInputText required="true" columns="#{bindings.GlCode.displayWidth}"
windowHeight="300" windowWidth="300" simple="true"
action="dialog:glCodePopUp" value=""
binding="#{productBean.selInputTextGlCode}"
returnListener="#{productBean.handleGlCodeReturn}"/>What do I should put in the "value" attribute? I've tried #{bindings.GlCode.inputValue} but if I do that then the selectinputtext will displayed in zero length (just a small vertical grey line) and with no such that green flash light image on the right. Because the main page is an add new form, so for the first time all the input is blank.
This is the handling method in the add-new-page back bean:
public void handleGlCodeReturn(ReturnEvent returnEvent) {
GlCodePopUpBean glCodeBean = (GlCodePopUpBean)returnEvent.getReturnValue();
if(glCodeBean == null)return;
//setter lines
String glCodeId = glCodeBean.getGlCodeId();
String glCode = glCodeBean.getGlCode();
getSelInputTextGlCode().setValue(glCode);
getSelInputTextGlCode().setSubmittedValue(null);
((AttributeBinding)getBindings().getControlBinding("ParamGlCodeId")).setInputValue(glCodeId);
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.addPartialTarget(getSelInputTextGlCode());
}I've printed out glCodeId, glCode and getSelInputTextGlCode().getValue() after the setter lines, and all of them printed the right value, but it just not displayed in the inputtext!
I've also tried using processScope - #{processScope.glCode} - and it also failed in displaying the value in the inputtext.
I wonder what's wrong? -
Every since I have upgraded to IOS7 on my ipad, Words with Friends only displays in the portrait position. I cannot get it to be landscape. Can anyone help me out. I have turned it off and started again and keep turning the ipad only to have it go to portrait in the opposite side.
The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
"Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
The default settings mean that cookies are enabled and thus should work.
Did you try to delete the cookies from the bank site?
Details like websites remembering you (log you in automatically) are stored in a cookie.
*Create a cookie 'allow' exception to keep such cookies, especially in case of secure websites and when cookies expire when Firefox is closed.
*Tools > Options > Privacy > "Use custom settings for history" > Cookies: Exceptions
In case you use "Clear history when Firefox closes" or otherwise clear history:
*do not clear the Cookies
*do not clear the Site Preferences
*Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
*https://support.mozilla.org/kb/remove-recent-browsing-search-and-download-history
Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep. -
Positive Value with Zero Stock
hi Experts
I noticed while doing a stock audit report that I had a positive value of £35.00 for a item code where the stock level was zero. How can I get the amount down to zero too? Stock Revaluation won't work because there is no stock and any in/out stock transaction simply result in outstanding amount of £35.00.
We are using FIFO for value . I would also be interested to know how I can query other items with this issue?
thanks
Geoff
Edited by: Geoff Lord on Jul 8, 2011 5:26 PMHi Goeff.......
If the stock of the item is zero and still it shows the item cost then this means nothing.
It does not affect anything in system.
The moment you book GRN the purchase value will be overrite on it. It only shows for display as last price......
You can try a purchase in demo DB and then run the Audit report you can find the difference.......
Regards,
Rahul -
Validation of JTextField to accept negative and positive values
Hi,
I have a question. I have a jTable populated with the fieldname
in the first column and datatype in the second column.
I would like to place a JTextField component in the frame
depending on the data type. So, if a row is selected in the table, the
datatype of that fieldname is retrieved and depending on that data type
I want a JTextField to be displayed.
Now, if the data type is of Integer type, I want the JTextfield to
accepts Integers only(positive). I have created a class that extends JTextfield.
But, I want the text field to accept negative integers also. Can anyone please guide me ?Hi,
I wrote an extension of JTable that provides better rendering and editing support for:
Color
Font
Locale
Integer
int
Long
long
Short
short
Byte
byte
BigInteger
Double
double
Float
float
BigDecimal
and some more
To allow only positive values for the type integer you could use:
JXTable myTable = new JXTable(...);
myTable.setDefaultEditor(Integer.class, new IntegerCellEditor(0, Integer.MAX_VALUE, <some locale>));The number editors are based on JFormattedTextField.
http://softsmithy.sourceforge.net/lib/docs/api/org/softsmithy/lib/swing/JXTable.html
http://softsmithy.sourceforge.net/lib/docs/api/org/softsmithy/lib/swing/IntegerCellEditor.html
Homepage:
http://www.softsmithy.org
Download:
http://sourceforge.net/project/showfiles.php?group_id=64833
Source:
http://sourceforge.net/cvs/?group_id=64833
For more information about the number fields have a look at he following thread:
http://forum.java.sun.com/thread.jspa?threadID=718662
-Puce
Maybe you are looking for
-
Please need added info iOS upgrade ipad2
Need clarification. Please be patient. I am overcautious but... I have business related ipad2 filled with apps in factory installed 4.3.3 Verizon wifi. Never upgraded. Worried about loosing system function after upgrade, crash. Reason- I believe iOS
-
Oracle on Development Platform
I had Oracle 10g setup on the production server running 2 database. Now I want to setup another oracle 10g on the development server so every night the data of both database in the production server will be copy over to the oracle on the development
-
Best size for photos for ATV?
I want to place lots of photos on a 2nd generation ATV to work as a screen saver. 1. Is .jpg the best format? 2. What physical dimension should I make the file or does it not matter? Will any images larger than my HD TV 1920x1080 just scale down to f
-
Hello, My requirement is that I have to syndicate material number along with the assigned class along with its attribute names and values in a flat file. The file would have the below format Material number Class Attribute name Attrib
-
Trying to run FC5, and it will not startup. I have been using it for a couple months, but now it wont start up for some reason. I think it started after I changed the capture destination. It tries to start, even asks if a firewire device is connected