Adding items in JComboBox - Help
Hy, I have a JComboBox() and a JTextField().
when I input a name in the JTextField and clicks on the "Ok" button
the name is added in the JComboBox().
What I want is when I click on the "Ok" button, a check is made to see
whether the name input in the JTextField already exist in the JComboBox().
If is exist a message is displayed else it is added.
How to perform the check.
PLease send me code for doing this.
thanks
Hi.
The JComboBox uses a model to get its hands on the elements to be displayed. Thus you must search the model to see if the string is already contained.
Use something like this:
public boolean contains(JComboBox comboBox, String s) {
int elementCount = comboBox.getModel().getSize();
for (int i = 0; i < elementCount; i ++) {
String t = (String)comboBox.getModel().getElementAt(i);
if (t.equals(s))
return true;
return false;
}Hope this helps,
Michael
Similar Messages
-
SSRS 2008 Production orders created report, when I added item description some how cost group id is not working ,
my costgroup id did not break into labor , only Mat Cost showed in the total,
my query is as below, did I link the wrong field, I want to show Labor total also
can some one suggest what I did wrong .
any advise will be great
SELECT PRODTABLE.PRODID, PRODCALCTRANS.COSTGROUPID, PRODTABLE.QTYCALC, PRODTABLE.PRODSTATUS, PRODCALCTRANS.COSTAMOUNT,
PRODCALCTRANS.COSTMARKUP, PRODCALCTRANS.REALCOSTAMOUNT, PRODCALCTRANS.CALCTYPE, PRODTABLE.DATAAREAID, PRODCALCTRANS.KEY3,
PRODCALCTRANS.CONSUMPVARIABLE, PRODCALCTRANS.REALCONSUMP, PRODTABLE.ITEMID, PRODTABLE.SCHEDDATE, PRODTABLE.FINISHEDDATE,
PRODCALCTRANS.KEY1, PRODCALCTRANS.TRANSDATE, PRODCALCTRANS.QTY, PRODCALCTRANS.KEY2, PRODCALCTRANS.COLLECTREFLEVEL,
PRODCALCTRANS.LINENUM, INVENTTABLE.ITEMNAME, INVENTTABLE.ITEMID AS Expr1, PRODTABLE.INVENTTRANSID
FROM PRODTABLE INNER JOIN
PRODCALCTRANS ON PRODTABLE.PRODID = PRODCALCTRANS.PRODID AND PRODTABLE.DATAAREAID = PRODCALCTRANS.DATAAREAID INNER
JOIN
INVENTTABLE ON PRODCALCTRANS.DATAAREAID = INVENTTABLE.DATAAREAID AND PRODCALCTRANS.KEY1 = INVENTTABLE.ITEMID
WHERE (PRODTABLE.PRODSTATUS = 7) AND (PRODTABLE.DATAAREAID = N'AR1') AND (PRODTABLE.ITEMID = @itemid) AND
(PRODTABLE.FINISHEDDATE >= @Paramfromdate) AND (PRODTABLE.FINISHEDDATE <= @Paramtodate) AND (PRODCALCTRANS.COLLECTREFLEVEL
= 1) AND
(PRODCALCTRANS.CALCTYPE >= 0)Hi Bitia,
As per my understanding, after you add Item field to the report, it does not calculate total of matl group, right? If that is the case, please refer to the following steps to troubleshoot the problem:
Modify the dataset used to retrieve data, delete the fields will not be used in the report.
Run the query in SQL Server Management Studio (SSMS) to make sure that there is data for matl cost group.
Make sure that row group and totals are correctly added.
In addition, do you want to add Finished date to page header? If that is the case, we can use ReportItem to achieve the goal. Please refer to the following steps:
In design surface, right-click the report and click Insert, then click Page Header.
Drag Text Box from Toolbox to page header.
Right-click inside of Text Box, then click Expression.
In the expression text box, type the code like below:
=ReportItems!FinishedDate.Value
If the problem remain unresolved, please provide the screenshot of the report in design view, the following screenshot is for your reference:
Reference:
ReportItems Collection References
Adding Grouping and Totals
Thanks,
Wendy Fu -
Sharepoint throw a javascript error while adding items to sharepoint list
sharepoint throw javascript error when adding item to list
error called: this._registeredValidators[validatorIdx].Validate is not a function
any help pleaseHi,
If you want to validatelist column, there is out of the box way to accomplish this with SharePoint
There's a great blog that covers how to validate Strict Text Formats:
http://sharepointsolutions.com/sharepoint-help/blog/2011/12/how-to-validate-strict-text-formats-in-sharepoint-2010/
In addition, we can use JavaScript to validate column. Please make sure you use the code correctly.
More information:
http://chrisstahl.wordpress.com/2011/02/06/validate-a-sharepoint-list-column-with-regular-expression/
http://blog.tallan.com/2013/09/16/how-to-add-custom-validation-logic-to-validate-a-phone-field-in-sharepoint/
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
In the Itunes Wishlist there is no price button that you can push to buy the items. So I cant buy my whole wishlist without doing it all seperatly and I dont know the total price of all the items. Please help!
Both the button and the total cost appear to have been removed in the current version of iTunes - I don't have them either and other people have posted about it as well. You can try leaving feedback for Apple and maybe they'll be added back in a future update : http://www.apple.com/feedback/itunesapp.html
-
Personalization: Adding Items in the Review Page
Hi,
I have successfully added items in the previous page (Employment Type) before the review page. I was able to submit it and see the changes in APPS.
Right now, whenever I reach the review page and I did some changes with my newly added items, these items are, naturally, not displayed in the Review Page. I thought it will be as simple as creating items in the Review Page (thru Personalization, of course) but I couldn't add the current and proposed value. Couldn't even display the static texts properly in the Review Page.
So how can I add items in the Review Page?? I tried using the same view attribute and view instance but it didn't give me any value.
I'm still new with OAF personalization so any recommendations on books to read are welcome.
Thanks!
NHi,
From your description, my understanding is that you want to show the number of unread mails on the home page of SharePoint.
Here is a solution from codeplex
for your reference:
http://exchangewp.codeplex.com/
You could
also refer to this article(SharePoint UnRead Email Solution):
https://pinpoint.microsoft.com/Applications/12884948334?locale=en-ye/writereview&wa=wsignin1.0.
Best Regards
Vincent Han
TechNet Community Support
Thanks Vincent, That will help me get somewhere.
Regards,
Gagandeep Singh
My CRM blog |
My SharePoint blog -
New Price Updates for newly added Items Through VA02
Hi All,
Through VA02 ,If you change first date in line item we have written code in MV45AFZB(USEREXIT_NEW_PRICING_VBKD
) for updating price for that item.
Now the issue is if u add one more new line item through VA02 itself..here we were not getting that line item detials.because its not yet saved.
We want to update prices for newly added items also.Hi Reddy,
For translation of any text , goto SE63 -> in menu TRANSLATION -> R/3 Enterprise - > Transport object -->
for Transport Entry of Object : R3TR SHI3 ZABC
then select target & source lang. click EDIT.
Hope this helps you.
Reagards,
Aby -
I have an Itunes account already set up, when setting up my hubby's new phone to itunes, I have somehow merged the 2 itunes accounts together and now itunes is not responding to my phone and all of my info has synced onto my hubby's phone wiping all of his info and adding mine...Help!!
If her data was not backed up or synced to something, it's gone. Sorry.
-
Dear Experts
I am getting the following error message while adding item in Item Master data. I have modified the following SBO_SP_transactionNotification in SQL server after that could not able to add the item
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(20), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, [U]pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
-- IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
BEGIN
IF EXISTS(
SELECT T0.Price FROM IGN1 T0
where IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
END
end
-- Select the return values
select @error, @error_message
endHi Rathna,
Just put the SP like this, without the -- before the IF. A -- marks the line as a command therefore you need to uncomment and it will work.
IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
BEGIN
IF EXISTS(
SELECT T0.Price FROM IGN1 T0
where IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
END
end
Hope it helps -
Error : while adding Items to Cart and while going to Checkout
Hi All
When I add Items to cart and when I click on checkout button below Error is coming
atg.commerce.pricing.PricingException: Failed to get an adjuster for pricing model Item Discount - Percent Off:200131
at atg.commerce.pricing.DiscountCalculatorService.getAdjuster(DiscountCalculatorService.java:361)
at atg.commerce.pricing.ItemDiscountCalculator.priceQualifyingItems(ItemDiscountCalculator.java:561)
at atg.commerce.pricing.ItemDiscountCalculator.priceItems(ItemDiscountCalculator.java:312)
at atg.commerce.pricing.ItemPricingEngineImpl.applyCalculator(ItemPricingEngineImpl.java:844)
at atg.commerce.pricing.ItemPricingEngineImpl.applyPromotions(ItemPricingEngineImpl.java:673)
at atg.commerce.pricing.ItemPricingEngineImpl.priceItems(ItemPricingEngineImpl.java:557)
at atg.commerce.pricing.PricingTools.priceItemsForOrderTotal(PricingTools.java:2448)
at atg.commerce.pricing.PricingTools.priceOrderSubtotalShipping(PricingTools.java:1795)
at atg.commerce.pricing.PricingTools.priceOrderSubtotalShipping(PricingTools.java:1737)
at atg.commerce.pricing.PricingTools.performPricingOperation(PricingTools.java:3064)
at atg.commerce.pricing.processor.PriceOrderTotal.runProcess(PriceOrderTotal.java:138)
at atg.service.pipeline.PipelineLink.runProcess(PipelineLink.java:233)
at atg.service.pipeline.PipelineChain.runProcess(PipelineChain.java:343)
at atg.service.pipeline.PipelineChainContext.runProcess(PipelineChainContext.java:185)
at atg.service.pipeline.PipelineManager.runProcess(PipelineManager.java:453)
at atg.commerce.pipeline.CommercePipelineManager.runProcess(CommercePipelineManager.java:101)
at atg.commerce.order.purchase.PurchaseProcessHelper.runProcess(PurchaseProcessHelper.java:452)
at atg.commerce.order.purchase.PurchaseProcessHelper.runRepricingProcess(PurchaseProcessHelper.java:358)
at atg.commerce.order.purchase.PurchaseProcessHelper.runProcessRepriceOrder(PurchaseProcessHelper.java:317)
at atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:890)
at atg.commerce.order.purchase.CartModifierFormHandler.doAddItemsToOrder(CartModifierFormHandler.java:3245)
at atg.commerce.order.purchase.CartModifierFormHandler.addItemToOrder(CartModifierFormHandler.java:2870)
at atg.projects.store.order.purchase.StoreCartFormHandler.addItemToOrder(StoreCartFormHandler.java:1299)
at atg.projects.store.order.purchase.StoreCartFormHandler.handleAddItemToOrder(StoreCartFormHandler.java:1516)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at atg.droplet.EventSender.sendEvent(EventSender.java:582)
at atg.droplet.FormTag.doSendEvents(FormTag.java:800)
at atg.droplet.FormTag.sendEvents(FormTag.java:649)
at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:655)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2425)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:139)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:477)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:208)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:437)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.projects.store.servlet.pipeline.ProtocolSwitchServlet.service(ProtocolSwitchServlet.java:287)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:280)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:554)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:212)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:383)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:263)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:1
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
22:29:13,662 ERROR [CartFormHandler]
CAUGHT AT:
CONTAINER:atg.commerce.CommerceException: An unknown error occurred while adding an item to the Order with id [o400001].; S
at atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:942)
at atg.commerce.order.purchase.CartModifierFormHandler.doAddItemsToOrder(CartModifierFormHandler.java:3245)
at atg.commerce.order.purchase.CartModifierFormHandler.addItemToOrder(CartModifierFormHandler.java:2870)
at atg.projects.store.order.purchase.StoreCartFormHandler.addItemToOrder(StoreCartFormHandler.java:1299)
at atg.projects.store.order.purchase.StoreCartFormHandler.handleAddItemToOrder(StoreCartFormHandler.java:1516)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at atg.droplet.EventSender.sendEvent(EventSender.java:582)
at atg.droplet.FormTag.doSendEvents(FormTag.java:800)
at atg.droplet.FormTag.sendEvents(FormTag.java:649)
at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:655)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2425)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:139)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:477)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:208)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:437)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.projects.store.servlet.pipeline.ProtocolSwitchServlet.service(ProtocolSwitchServlet.java:287)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:280)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:554)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:212)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:383)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:263)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:1
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
Caused by: atg.commerce.CommerceException: An error occurred when running the pricing order chain after adding items to ord
at atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:901)
... 72 more
SOURCE EXCEPTION:
atg.commerce.CommerceException: An error occurred when running the pricing order chain after adding items to order [o400001
at atg.commerce.order.purchase.PurchaseProcessHelper.addItemsToOrder(PurchaseProcessHelper.java:901)
at atg.commerce.order.purchase.CartModifierFormHandler.doAddItemsToOrder(CartModifierFormHandler.java:3245)
at atg.commerce.order.purchase.CartModifierFormHandler.addItemToOrder(CartModifierFormHandler.java:2870)
at atg.projects.store.order.purchase.StoreCartFormHandler.addItemToOrder(StoreCartFormHandler.java:1299)
at atg.projects.store.order.purchase.StoreCartFormHandler.handleAddItemToOrder(StoreCartFormHandler.java:1516)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at atg.droplet.EventSender.sendEvent(EventSender.java:582)
at atg.droplet.FormTag.doSendEvents(FormTag.java:800)
at atg.droplet.FormTag.sendEvents(FormTag.java:649)
at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:655)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2425)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:139)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:477)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:208)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:437)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.projects.store.servlet.pipeline.ProtocolSwitchServlet.service(ProtocolSwitchServlet.java:287)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:280)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:554)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:212)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:383)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:263)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:1
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
Anybody could provide the solution or rootCause to this issue(I know this error is throwing by pricing pipe line but why its throwing I am not getting) Please any body tell me ASAP, I am gated with this issue.
ThanksInAdvanceI don't know much about promotions, But it looks like that there is some problem while applying some promotions for the added item.
Check for this id:200131
atg.commerce.pricing.PricingException: Failed to get an adjuster for pricing model Item Discount - Percent Off:200131
at atg.commerce.pricing.DiscountCalculatorService.getAdjuster(DiscountCalculatorService.java:361)
Try adding some other item.
FYI - if it's promotion issue and promotion for all order, issue will come for other item too
Thanks,
Nitin. -
After updating to ISO6, my email sending get extremely slow or dispeard. on the botton line of mail page always indicate "sending # of 9", however I do not know where to check or delete these unsent items. Please help! It has consumed lots of data.
I use @me.com and @hotmail.comHi,
>>A CHAR datatype and VARCHAR2 datatype are stored identically (eg: the word 'WORD' stored in a CHAR(4) and a varchar2(4) consume exactly the same amount of space on disk, both have leading byte counts).
Ok, but on the other hands:
SGMS@ORACLE10> create table x (name char(10), name2 varchar2(10));
Table created.
SGMS@ORACLE10> insert into x values ('hello','hello');
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> select vsize(name),vsize(name2) from x;
VSIZE(NAME) VSIZE(NAME2)
10 5
SGMS@ORACLE10> select dump(name),dump(name2) from x;
DUMP(NAME) DUMP(NAME2)
Typ=96 Len=10: 104,101,108,108,111,32,32,32,32,32 Typ=1 Len=5: 104,101,108,108,111Cheers -
Pre-populating a date/time column with the value entered in the last added item
I have a list with a column called "expected finish date". Whenever the user adds the very first item in a list, he/she should have to enter a value for this column.
I want to make all new item entries to pre-poplate this field with the value entered in the previously added item. This way, he/she wont have to re-enter the date every time (which rarely changes). How can this be done?could create a second list ("state") with column ("default finish date")...
create a workflow on main list... if column is blank/empty, pull from second list... otherwise, update second list with the value that was entered.
Or, customize the form (InfoPath or JavaScript)
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
Repainting problems of the Menu items in Oracle Help Navigator
All,
I am facing a strange problem when using Oracle Help for my application which is developed in Java,Swings.
Whenever, I open Help for any component through my application, the menu items in the Help screen are not visible. They are not getting repainted. Only when user drags the mouse over the items, they are getting repainted and visible to the user. This has been raised as a bug by our testing people. I couldn't get any help in aspects of any errors/exceptions being logged when the action takes place.
Where can I have the log files for Help window?
Can anyone help me and guide me to the right solution in this regards.
My environ is like this:
Windows NT, JRE1.4, Oracle Help - ohj-jewt-4_1_16.jar,
Thanks in advance for all.
regards,
Kishore.iweb2 navbar is rendered by javascript widget, therefore you can change navbar font style with javascript; this is an efficient way to change navbar font style.
Copy and paste the following into your pages using HTML Snippet:
<script type = 'text/javascript'>
function changeNavbar() {
navCSS = parent.document.getElementById('widget0-navbar');
navCSS.style.fontSize = '0.75em'; // font size, change to less than 1em to change font smaller;
navCSSbg = parent.document.getElementById('widget0-bg');
navCSSbg.style.textAlign = 'center'; // navbar list alignment;
clearInterval(chkNavbar);
chkNavbar = setInterval('changeNavbar()', 500);
note: You won't see the changes in iweb, but you will see the change when view the pages online - after publishing. -
I was adding items with the intent of command z 'ing them back to their original when it crashed, autosaved, and my original numbers were lost to the temp numbers plugged in... how can i get back to the previous version? Because it had closed, command z
Sorry, this happened in CLOUD numbers....
-
reset printer settings....still no print....plus added items to menu bar...they're gone from bar & customize window...title bar changed
Firefox doesn't print some pages well, but if you have this problem on all pages, there may be some problem with Firefox's ability to work with your printer driver. If it's only particular pages, can you post the URLs for an assessment?
I'm not clear on what happened with Cut, Copy & Paste: you moved them from the menu drop-down to the toolbar and then they disappeared?
If you return to Customize mode, try clicking Restore Defaults and see whether things return to normal.
When you say "toolbar background" do you mean a theme you were using in an earlier version of Firefox? Otherwise, there's not much to see.
If Firefox is becoming transparent or showing some desktop or showing other display glitches it may be incompatible with your graphics card drivers. The standard workaround for that is to disable Firefox's use of hardware acceleration for graphics.
3-bar menu button (or Tools menu) > Options > Advanced
On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
This will take effect the next time you exit out of Firefox and restart it. -
How to restrict adding Item Sales Order without itemcost
Hi Experts,
Can i restrict sap user on adding "Sales Order" (Items) if they are adding items without itemcost on item master?Insert this in your SBO_SP_TransactionNotification stored procedure after the line
-- ADD YOUR CODE HERE
IF @transaction_type IN (N'A', N'U') AND @object_type = '17'
BEGIN
If exists
(Select 1
From RDR1 O INNER JOIN OITM I ON O.ItemCode = I.ItemCode
Where I.AvgPrice = 0
and O.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 1
SET @error_message = N'Item without cost ! '
end
END
This code is applicable if you do not set the Manage Item Cost per Warehouse. If you set it, use the modified code of Rahul.
Edited by: István K#rös on Oct 12, 2010 1:59 PM
Maybe you are looking for
-
Task manager and calendar App that syncs with Outlook
Hi all, I've been looking for a very user-friendly task manager and calendar (some sort of an organizer) that synchs with Outlook. The regular iphone 3g calendar only has calendar function and the warnings don't have the snooze function. I found Smar
-
Changing the column widths in a Skin template
Is it possible to modify the layout of the skins? More specifically, change the width of the columns in the Multiab Accordion template in the Adobe Air single source layout? I think somebody already answered this question saying that skins are not ye
-
After 10.9.2 mail does not start
I upgraded to 10.9.2 this morning. Mail will not start. I can't get spotlight to work. There are multiple crashes in the log such as this: 2/28/14 9:50:12.000 AM kernel[0]: CODE SIGNING: process 1495[com.apple.ShareK]: rejecting invalid page at add
-
Upgraded computer and itunes. Lots of !!!
I have Changed computers and have upgraded itunes. I now have a lot of my songs in the library with exclamation marks and I can't find where they are located. I do have the songs on my ipod. Can I somehow reload them into a central folder? Please hel
-
Setting tab position and alignment in one shot
Is there anyway to add a tab and set the position and alignment at once? myParagraph.tabStops.add().position = myTabPosition; The problem I am having is I don't know how to reference the tab to set its alignment.