Re: LDAP Integration

2014-11-22 Thread Ramkrishna Swamy
Hi Users,

I have done debugging and found that in OFBizCasAuthenticationHandler
class; sendRedirect is not able to redirect on my web application. So I
commented the code in ldap.xml file for not pointing
to OFBizCasAuthenticationHandler class and
using OFBizLdapAuthenticationHandler class instead. I also made changes in
some other files and it started working. Now I am able to login in my
application happily. One more thing I noticed is that I have installed
Active Directory not CAS server; does it mean that CAS is not same as
active directory. Do I need to install CAS server in order to use
OFBizCasAuthenticationHandler class?

On Thu, Nov 6, 2014 at 5:00 PM, Ramkrishna Swamy <
ramkrishna.swamyof...@gmail.com> wrote:

> Hi guys,
>
> Would anybody help me out here please.
>
> On Tue, Nov 4, 2014 at 8:25 PM, Ramkrishna Swamy <
> ramkrishna.swamyof...@gmail.com> wrote:
>
>> Log shows login request's response is error but I can't see any error in
>> log.
>> Where to put login credentials?
>>
>> On Tue, Nov 4, 2014 at 7:55 PM, Mauricio Tavares 
>> wrote:
>>
>>> On Tue, Nov 4, 2014 at 6:09 AM, Ramkrishna Swamy
>>>  wrote:
>>> > Hi Users,
>>> >
>>> > I have gone through material available on web for LDAP integration
>>> > with OFBiz but no luck. I followed below steps: -
>>> > (1) Changed ldap.xml file to point my LDAP server settings as below:
>>> > OU=OFBIZ,DC=OFBIZ.DC,DC=com
>>> > ldap://IP_Address of server:389
>>> > https://localhost:8440/cas
>>> > (2) Changed security.properties as below:
>>> > security.ldap.enable=true
>>> > security.ldap.fail.login=true
>>> > (3) Changed jndiLdap.properties as below:
>>> >  java.naming.provider.url=ldap://IP_Address of server:389
>>> >  ldap.dn.template=CN=Ramkrishna,OU=OFBIZ,DC=OFBIZ.DC,DC=com
>>> >
>>> >   Then I created Ramkrishna user in OFBiz with same password as in
>>> > LDAP server and also provided userLdapDn field in UserLogin entity
>>> > with CN=Ramkrishna,OU=OFBIZ,DC=OFBIZ.DC,DC=com and started OFBiz
>>> > server and tried to access party module. It is redirecting to cas
>>> > login url but with blank page rather showing login page.
>>> >
>>> > So please help if I have missed anything or anybody has done same
>>> > integration then please provide steps.
>>> >
>>>   What does your logs show when you logged in? Sounds like it
>>> failed to auth so it did not create the next page.
>>>
>>> >
>>> >
>>> > --
>>> > Thanks
>>> > Ramkrishna
>>>
>>
>>
>>
>> --
>> Thanks
>> Ramkrishna
>>
>
>
>
> --
> Thanks
> Ramkrishna
>



-- 
Thanks
Ramkrishna


Re: LDAP Integration

2014-11-06 Thread Ramkrishna Swamy
Hi guys,

Would anybody help me out here please.

On Tue, Nov 4, 2014 at 8:25 PM, Ramkrishna Swamy <
ramkrishna.swamyof...@gmail.com> wrote:

> Log shows login request's response is error but I can't see any error in
> log.
> Where to put login credentials?
>
> On Tue, Nov 4, 2014 at 7:55 PM, Mauricio Tavares 
> wrote:
>
>> On Tue, Nov 4, 2014 at 6:09 AM, Ramkrishna Swamy
>>  wrote:
>> > Hi Users,
>> >
>> > I have gone through material available on web for LDAP integration
>> > with OFBiz but no luck. I followed below steps: -
>> > (1) Changed ldap.xml file to point my LDAP server settings as below:
>> > OU=OFBIZ,DC=OFBIZ.DC,DC=com
>> > ldap://IP_Address of server:389
>> > https://localhost:8440/cas
>> > (2) Changed security.properties as below:
>> > security.ldap.enable=true
>> > security.ldap.fail.login=true
>> > (3) Changed jndiLdap.properties as below:
>> >  java.naming.provider.url=ldap://IP_Address of server:389
>> >  ldap.dn.template=CN=Ramkrishna,OU=OFBIZ,DC=OFBIZ.DC,DC=com
>> >
>> >   Then I created Ramkrishna user in OFBiz with same password as in
>> > LDAP server and also provided userLdapDn field in UserLogin entity
>> > with CN=Ramkrishna,OU=OFBIZ,DC=OFBIZ.DC,DC=com and started OFBiz
>> > server and tried to access party module. It is redirecting to cas
>> > login url but with blank page rather showing login page.
>> >
>> > So please help if I have missed anything or anybody has done same
>> > integration then please provide steps.
>> >
>>   What does your logs show when you logged in? Sounds like it
>> failed to auth so it did not create the next page.
>>
>> >
>> >
>> > --
>> > Thanks
>> > Ramkrishna
>>
>
>
>
> --
> Thanks
> Ramkrishna
>



-- 
Thanks
Ramkrishna


Re: LDAP Integration

2014-11-04 Thread Ramkrishna Swamy
Log shows login request's response is error but I can't see any error in
log.
Where to put login credentials?

On Tue, Nov 4, 2014 at 7:55 PM, Mauricio Tavares 
wrote:

> On Tue, Nov 4, 2014 at 6:09 AM, Ramkrishna Swamy
>  wrote:
> > Hi Users,
> >
> > I have gone through material available on web for LDAP integration
> > with OFBiz but no luck. I followed below steps: -
> > (1) Changed ldap.xml file to point my LDAP server settings as below:
> > OU=OFBIZ,DC=OFBIZ.DC,DC=com
> > ldap://IP_Address of server:389
> > https://localhost:8440/cas
> > (2) Changed security.properties as below:
> > security.ldap.enable=true
> > security.ldap.fail.login=true
> > (3) Changed jndiLdap.properties as below:
> >  java.naming.provider.url=ldap://IP_Address of server:389
> >  ldap.dn.template=CN=Ramkrishna,OU=OFBIZ,DC=OFBIZ.DC,DC=com
> >
> >   Then I created Ramkrishna user in OFBiz with same password as in
> > LDAP server and also provided userLdapDn field in UserLogin entity
> > with CN=Ramkrishna,OU=OFBIZ,DC=OFBIZ.DC,DC=com and started OFBiz
> > server and tried to access party module. It is redirecting to cas
> > login url but with blank page rather showing login page.
> >
> > So please help if I have missed anything or anybody has done same
> > integration then please provide steps.
> >
>   What does your logs show when you logged in? Sounds like it
> failed to auth so it did not create the next page.
>
> >
> >
> > --
> > Thanks
> > Ramkrishna
>



-- 
Thanks
Ramkrishna


LDAP Integration

2014-11-04 Thread Ramkrishna Swamy
Hi Users,

I have gone through material available on web for LDAP integration
with OFBiz but no luck. I followed below steps: -
(1) Changed ldap.xml file to point my LDAP server settings as below:
OU=OFBIZ,DC=OFBIZ.DC,DC=com
ldap://IP_Address of server:389
https://localhost:8440/cas
(2) Changed security.properties as below:
security.ldap.enable=true
security.ldap.fail.login=true
(3) Changed jndiLdap.properties as below:
 java.naming.provider.url=ldap://IP_Address of server:389
 ldap.dn.template=CN=Ramkrishna,OU=OFBIZ,DC=OFBIZ.DC,DC=com

  Then I created Ramkrishna user in OFBiz with same password as in
LDAP server and also provided userLdapDn field in UserLogin entity
with CN=Ramkrishna,OU=OFBIZ,DC=OFBIZ.DC,DC=com and started OFBiz
server and tried to access party module. It is redirecting to cas
login url but with blank page rather showing login page.

So please help if I have missed anything or anybody has done same
integration then please provide steps.



-- 
Thanks
Ramkrishna


Re: Login issue

2014-05-31 Thread Ramkrishna Swamy
Hi James,

I cannot provide code to reproduce the problem. But I can provide code
snippet here: -

Javascript function: -
function submitForm(form) {
  var customerId = document.getElementById("customerId").value;
  if(customerId != null) {
   document.getElementById("customerIdHidden").value = customerId;
  }
  form.action="<@ofbizUrl>submitRequest";
}

Form : -




I am not using any ajax request to submit the form. I am simply submitting
form in javascript function as above.






On Fri, May 30, 2014 at 10:57 PM, james_sg  wrote:

> I suspect the problem could be similar to this
> https://issues.apache.org/jira/browse/OFBIZ-3862
>
> Are you able to provide some code to reproduce this problem?
>
>
> RamKrishna Swamy wrote
> > Hi James,
> >
> > I am using 12.04.02.
> >
> >
> > On Fri, May 30, 2014 at 1:14 PM, james_sg <
>
> > snowmedal@
>
> > > wrote:
> >
> >> which version of OFBiz are you using?
> >>
> >>
> >> RamKrishna Swamy wrote
> >> > Hi User,
> >> >
> >> > I have created a form and put a button to select some  values from
> >> another
> >> > page. After selecting value; if I try to click on the button to select
> >> > another value then I am logging out even if I am already logged in.
> >> First
> >> > time it works but second time of selection I am being logged out. I am
> >> > using MySql database. Any pointer would be of great help.
> >> >
> >> > --
> >> > Thanks
> >> > Ramkrishna
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://ofbiz.135035.n4.nabble.com/Login-issue-tp4651158p4651258.html
> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >>
> >
> >
> >
> > --
> > Thanks
> > Ramkrishna
>
>
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Login-issue-tp4651158p4651279.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



-- 
Thanks
Ramkrishna


Re: Login issue

2014-05-30 Thread Ramkrishna Swamy
Hi James,

I am using 12.04.02.


On Fri, May 30, 2014 at 1:14 PM, james_sg  wrote:

> which version of OFBiz are you using?
>
>
> RamKrishna Swamy wrote
> > Hi User,
> >
> > I have created a form and put a button to select some  values from
> another
> > page. After selecting value; if I try to click on the button to select
> > another value then I am logging out even if I am already logged in. First
> > time it works but second time of selection I am being logged out. I am
> > using MySql database. Any pointer would be of great help.
> >
> > --
> > Thanks
> > Ramkrishna
>
>
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Login-issue-tp4651158p4651258.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



-- 
Thanks
Ramkrishna


Re: Login issue

2014-05-26 Thread Ramkrishna Swamy
Hi List,

I found below discussion in markmail and it seems still there is no fix.
I read one discussion on markmail and someone was suggesting to set
cookie.domain in url.properties; but that also did not work.
I am still frequently being asked to login again and again.

http://markmail.org/search/?q=login+issue+in+ofbiz#query:login%20issue%20in%20ofbiz%20list%3Aorg.apache.ofbiz.user+page:12+mid:d5w247f255zy6a3m+state:results

Can anyone suggest how to handle the problem.


On Thu, May 22, 2014 at 10:47 PM, Ramkrishna Swamy <
ramkrishna.swamyof...@gmail.com> wrote:

> Hi User,
>
> I have created a form and put a button to select some  values from another
> page. After selecting value; if I try to click on the button to select
> another value then I am logging out even if I am already logged in. First
> time it works but second time of selection I am being logged out. I am
> using MySql database. Any pointer would be of great help.
>
> --
> Thanks
> Ramkrishna
>



-- 
Thanks
Ramkrishna


Login issue

2014-05-22 Thread Ramkrishna Swamy
Hi User,

I have created a form and put a button to select some  values from another
page. After selecting value; if I try to click on the button to select
another value then I am logging out even if I am already logged in. First
time it works but second time of selection I am being logged out. I am
using MySql database. Any pointer would be of great help.

-- 
Thanks
Ramkrishna


Re: Non static java method call in ftl

2014-05-22 Thread Ramkrishna Swamy
Thank you Youssef for the pointer.



On Wednesday, May 14, 2014, Youssef Khaye  wrote:

> In general, to call a non static java method you should have an instance
> from its class.
> for example
> ${screens.render("component://common/widget/CommonScreens.xml#cctypes")}
> in our context  we have an object called "screens"  wich is an instance of
> ScreenRenderer class.
> with that object we can call non static method  render:
> public String render(String combinedName)
> hope this help.
>
> youssef.
>
> Le 14/05/2014 11:22, Ramkrishna Swamy a écrit :
>
>> Hi User,
>>
>> Is there any way to call non static java method in ftl?
>>
>>
>>
>


Non static java method call in ftl

2014-05-14 Thread Ramkrishna Swamy
Hi User,

Is there any way to call non static java method in ftl?


-- 
Thanks
Ramkrishna


How to get value of lookup in javascript

2013-12-26 Thread Ramkrishna Swamy
Hello Users,

I have a requirement to use javascript on lookup value, I tried using
jQuery('#id").val() and docuement.getElementById('id').value but both
are not working and I am getting null value. Please suggest me how can
I get value of lookup.

-- 
Thanks
Ramkrishna


Re: Subscription functionality

2013-09-14 Thread Ramkrishna Swamy
Hello Jacques/Hans,

Please find my response inline.


On Fri, Sep 13, 2013 at 11:55 AM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Hans Bakker wrote:
> > Isn't it so that it works the other way around?
>
> I don't know exactly what Ramkrishna  wants to do. Sometimes you need to
> customise things (I had to so I did not use the std way).
>

What I want to do is I have to trigger one customize service when
subscription is expired.


>
> > all subscriptions have an expiry date, and need to be extended?
> > When not extended will expire using that date?
>
> I did not check code in SubscriptionServices.java. I thought Ramkrishna
>  did, and it did not fit his needs.
>

I have checked code in SubscriptionServices.java but no single method is
expiring the subscription, while extending it.


>
> > i think there was some extending service which is run regularly
>
> Yes, as said Ramkrishna : runSubscriptionAutoReorders
> A service designed to be automatically run by job scheduler
> to create orders from subscriptions which need to be extended.
> This is done by looking for all subscriptions which are active and where
> the automaticExtend flag is set to "Y"
>
> I see also a SECA for changeOrderStatus which runs
> processExtendSubscriptionByOrder
>
> Jacques
>
>
> > Regards,
> > Hans
> >
> > On 09/12/2013 06:54 PM, Jacques Le Roux wrote:
> >> You will have to write your own. Be sure to check what is already in
> SubscriptionServices.java
> >>
> >> Jacques
> >>
> >> Ramkrishna Swamy wrote:
> >>> Hello Jacques,
> >>>
> >>> The mentioned tables I know but I have not come across any code or
> service
> >>> which would expire the subscription. I have seen one scheduled service
> >>> "runSubscriptionAutoReorders" which checks for expiration of the
> >>> subscription by comparing current date and subscription's thruDate;
> but it
> >>> doesn't expire the subscription only simple check is there. So has
> there
> >>> been any other code/service already written which performs task of
> >>> expiration of the subscription or I will have to write my own custom
> >>> service to perform the task. Please suggest.
> >>>
> >>>
> >>>> You got one possibilty (the simplest one and most used I guess). A
> little
> >>>> explanation of the data model is at
> >>>> https://cwiki.apache.org/confluence/display/OFBIZ/Subscription
> >>>>
> >>>> Jacques
> >>>>
> >>>> Ramkrishna Swamy wrote:
> >>>>> Hello list,
> >>>>>
> >>>>> I have gone through link of subscription
> >>>>> http://www.amicontech.com/blog/subscriptions-in-ofbiz-and-opentaps/,
> in
> >>>>> this link I did not find how subscription expires. I tried to find a
> >>>>> service which should be called on expiration of subscription but I
> couldn't
> >>>>> find. As per the given link we need to customize a service in order
> to
> >>>>> serve subscription to the user, so I created a simple java service
> in order
> >>>>> to see how it's called. It is called once, at the time of placing an
> order.
> >>>>> So it will create subscription in the system now if I set thruDate to
> >>>>> expire the subscription it expires in the system. Is there any
> service
> >>>>> which is called to expire the subscription.
> >>>>> If anyone has any idea how it works then please let me know.
>



-- 
Thanks
Ramkrishna


Re: Subscription functionality

2013-09-11 Thread Ramkrishna Swamy
Hello Jacques,

The mentioned tables I know but I have not come across any code or service
which would expire the subscription. I have seen one scheduled service
"runSubscriptionAutoReorders" which checks for expiration of the
subscription by comparing current date and subscription's thruDate; but it
doesn't expire the subscription only simple check is there. So has there
been any other code/service already written which performs task of
expiration of the subscription or I will have to write my own custom
service to perform the task. Please suggest.

-- 
Thanks
Ramkrishna


On Sun, Sep 8, 2013 at 9:30 PM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> You got one possibilty (the simplest one and most used I guess). A little
> explanation of the data model is at
> https://cwiki.apache.org/confluence/display/OFBIZ/Subscription
>
> Jacques
>
> Ramkrishna Swamy wrote:
> > Hello list,
> >
> > I have gone through link of subscription
> > http://www.amicontech.com/blog/subscriptions-in-ofbiz-and-opentaps/, in
> > this link I did not find how subscription expires. I tried to find a
> > service which should be called on expiration of subscription but I
> couldn't
> > find. As per the given link we need to customize a service in order to
> > serve subscription to the user, so I created a simple java service in
> order
> > to see how it's called. It is called once, at the time of placing an
> order.
> > So it will create subscription in the system now if I set thruDate to
> > expire the subscription it expires in the system. Is there any service
> > which is called to expire the subscription.
> > If anyone has any idea how it works then please let me know.
>


Subscription functionality

2013-09-05 Thread Ramkrishna Swamy
Hello list,

I have gone through link of subscription
http://www.amicontech.com/blog/subscriptions-in-ofbiz-and-opentaps/, in
this link I did not find how subscription expires. I tried to find a
service which should be called on expiration of subscription but I couldn't
find. As per the given link we need to customize a service in order to
serve subscription to the user, so I created a simple java service in order
to see how it's called. It is called once, at the time of placing an order.
So it will create subscription in the system now if I set thruDate to
expire the subscription it expires in the system. Is there any service
which is called to expire the subscription.
If anyone has any idea how it works then please let me know.
-- 
Thanks,
Ramkrishna


Re: How to add html instead of ftl

2012-02-28 Thread Ramkrishna Swamy
My requirement is to use html not ftl.

Adrian: I have to include the html file inside widget tag as we do for ftl,
so how I can add static html inside widget tag?


On Tue, Feb 28, 2012 at 6:35 PM,  wrote:

> The idea of Ftl is to curb down HTML.
> 1. Just create a Ftl file and dump in the "NECESSARY" Html code and it
> should suffice.
> 2. Also explore the Content part of Ofbiz. (might be you are heading for
> this path)
>
>
> Dev Panda
>
>
>
>
> From:
> Ramkrishna Swamy 
> To:
> user@ofbiz.apache.org
> Date:
> 02/28/2012 06:04 PM
> Subject:
> How to add html instead of ftl
>
>
>
> Hello,
>
> How I can use html instead of ftl in ofbiz? I tried by adding an html file
> but it gives me error like "Rendering not yet supported for the template".
> If anyone has integrated before then please let me know.
>
> --
> Thanks
> Ramkrishna
>
>
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>


-- 
Thanks
Ramkrishna


Page refresh using two form

2010-06-11 Thread Ramkrishna Swamy
Hello,

I have two screens A and B, both are calling same form, i set an alternate
target for screen B and default target for screen A, when screen A calls the
form using some parameter like param1, param2 etc. and then i submit the
form a pdf has to come, pdf is coming but page is not being refreshed  means
after completing the request of submit form when i want to  select other
parameter and try to submit the form again it disables the button and i have
to manually refresh the page for selecting other parameters. It works fine
if i use separate form for both screen. What could be problem.
Please help, thanks in advance.

-- 
Thanks
Ramkrishna


Re: Error in service getPartyTelephone

2010-06-04 Thread Ramkrishna Swamy
Thanks Deepak for sharing the link, I have already solved the problem.

-- 
Thanks
Ramkrishna

On Fri, Jun 4, 2010 at 11:25 AM, Deepak Dixit
wrote:

> Hello Ramkrishna,
>
> You don't need get userLogin from parameters its availble in screen
> context.
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=6553757
> So you can directly use userLogin.
>
> You are trying to get userLogin from parameters there for you face the type
> conversion error.All parameters are in string formate.
>
> Regards
> --
> Deepak Dixit
>
>
>
>
> Ramkrishna Swamy wrote:
>
>> Hello Patrick,
>>
>> I did the same by putting value of userLogin into map and then passed map
>> to
>> service but it trows error saying "Groovy Event Error (Service
>> [getPartyTelephone] Failed (java.lang.String cannot be cast to
>> org.ofbiz.entity.GenericValue))".
>>
>> Following is my code for service: -
>> telecomNumberMap = dispatcher.runSync("getPartyTelephone", [partyId :
>> partyId, userLogin : userLogin]);
>>
>>
>>
>>
>> On Thu, Jun 3, 2010 at 8:56 PM, Patrick > >wrote:
>>
>>
>>
>>> Hi Rama
>>> Look at the example create invoice
>>>
>>> InvoiceServices.java
>>> createInvoiceContext.put("userLogin", userLogin);
>>> Map createInvoiceResult = dispatcher.runSync("createInvoice",
>>> createInvoiceContext);
>>>
>>> Notice the service def doesn't explicitly mention userLogin
>>>   >> default-entity-name="Invoice"
>>>
>>>
>>>  
>>> location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml"
>>> invoke="createInvoice">
>>>   Create Invoice Record
>>>   >> main-action="CREATE"/>
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>   
>>>
>>>
>>> On Thu, Jun 3, 2010 at 6:50 AM, Ramkrishna Swamy
>>>  wrote:
>>>
>>>
>>>> Hi Patrick,
>>>>
>>>>  I put the userLogin into the map but it says "java.lang.String cannot
>>>> be
>>>> cast to org.ofbiz.entity.GenericValue", then i tried with putting
>>>> userLoginId but it says "No such property userLoginId"
>>>> Following is my code: -
>>>> Groovy Event Error (Service [getPartyTelephone] Failed (java.lang.String
>>>>
>>>>
>>> cannot be cast to org.ofbiz.entity.GenericValue))
>>>
>>>
>>>> userLogin = parameters.userLogin;
>>>> partyId = parameters.partyId;
>>>> telecomNumberMap = dispatcher.runSync("getPartyTelephone",
>>>> UtilMisc.toMap("partyId", partyId, "userLoginId",
>>>>
>>>>
>>> userLogin.userLoginId));
>>>
>>>
>>>> Although the service getPartyTelephone does not require any userLogin
>>>> parameter as input.
>>>>
>>>> Please help.
>>>>
>>>> On Wed, Jun 2, 2010 at 10:02 PM, Patrick <
>>>> patrickinminneapo...@gmail.com
>>>> wrote:
>>>>
>>>>
>>>>
>>>>> Just put userLogin into the context map.
>>>>>
>>>>> On Wed, Jun 2, 2010 at 9:48 AM, Ramkrishna Swamy
>>>>>  wrote:
>>>>>
>>>>>
>>>>>> Hello list,
>>>>>>
>>>>>> When i call service getPartyTelephone from groovy then it shows error
>>>>>>
>>>>>>
>>>>> "you
>>>>>
>>>>>
>>>>>> must be logged in to complete the process", i saw the service
>>>>>>
>>>>>>
>>>>> definition,
>>>
>>>
>>>> it
>>>>>
>>>>>
>>>>>> requires only partyId not userlogin and also auth is false. so what
>>>>>>
>>>>>>
>>>>> could
>>>
>>>
>>>> be
>>>>>
>>>>>
>>>>>> problem.
>>>>>> Thanks in advance.
>>>>>>
>>>>>> --
>>>>>> Thanks
>>>>>> Ramkrishna
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> Thanks
>>>> Ramkrishna
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>>
>
>
>


Re: Error in service getPartyTelephone

2010-06-03 Thread Ramkrishna Swamy
Hello Patrick,

I did the same by putting value of userLogin into map and then passed map to
service but it trows error saying "Groovy Event Error (Service
[getPartyTelephone] Failed (java.lang.String cannot be cast to
org.ofbiz.entity.GenericValue))".

Following is my code for service: -
telecomNumberMap = dispatcher.runSync("getPartyTelephone", [partyId :
partyId, userLogin : userLogin]);




On Thu, Jun 3, 2010 at 8:56 PM, Patrick wrote:

> Hi Rama
> Look at the example create invoice
>
> InvoiceServices.java
> createInvoiceContext.put("userLogin", userLogin);
> Map createInvoiceResult = dispatcher.runSync("createInvoice",
> createInvoiceContext);
>
> Notice the service def doesn't explicitly mention userLogin
> default-entity-name="Invoice"
>
>  
> location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml"
> invoke="createInvoice">
>Create Invoice Record
> main-action="CREATE"/>
>
>
>
>
>
>
>
>
>
> On Thu, Jun 3, 2010 at 6:50 AM, Ramkrishna Swamy
>  wrote:
> > Hi Patrick,
> >
> >  I put the userLogin into the map but it says "java.lang.String cannot be
> > cast to org.ofbiz.entity.GenericValue", then i tried with putting
> > userLoginId but it says "No such property userLoginId"
> > Following is my code: -
> >Groovy Event Error (Service [getPartyTelephone] Failed (java.lang.String
> cannot be cast to org.ofbiz.entity.GenericValue))
> > userLogin = parameters.userLogin;
> > partyId = parameters.partyId;
> > telecomNumberMap = dispatcher.runSync("getPartyTelephone",
> > UtilMisc.toMap("partyId", partyId, "userLoginId",
> userLogin.userLoginId));
> >
> > Although the service getPartyTelephone does not require any userLogin
> > parameter as input.
> >
> > Please help.
> >
> > On Wed, Jun 2, 2010 at 10:02 PM, Patrick  >wrote:
> >
> >> Just put userLogin into the context map.
> >>
> >> On Wed, Jun 2, 2010 at 9:48 AM, Ramkrishna Swamy
> >>  wrote:
> >> > Hello list,
> >> >
> >> > When i call service getPartyTelephone from groovy then it shows error
> >> "you
> >> > must be logged in to complete the process", i saw the service
> definition,
> >> it
> >> > requires only partyId not userlogin and also auth is false. so what
> could
> >> be
> >> > problem.
> >> > Thanks in advance.
> >> >
> >> > --
> >> > Thanks
> >> > Ramkrishna
> >> >
> >>
> >
> >
> >
> > --
> > Thanks
> > Ramkrishna
> >
>



-- 
Thanks
Ramkrishna


Re: Error in service getPartyTelephone

2010-06-03 Thread Ramkrishna Swamy
Hi Patrick,

 I put the userLogin into the map but it says "java.lang.String cannot be
cast to org.ofbiz.entity.GenericValue", then i tried with putting
userLoginId but it says "No such property userLoginId"
Following is my code: -

userLogin = parameters.userLogin;
partyId = parameters.partyId;
telecomNumberMap = dispatcher.runSync("getPartyTelephone",
UtilMisc.toMap("partyId", partyId, "userLoginId", userLogin.userLoginId));

Although the service getPartyTelephone does not require any userLogin
parameter as input.

Please help.

On Wed, Jun 2, 2010 at 10:02 PM, Patrick wrote:

> Just put userLogin into the context map.
>
> On Wed, Jun 2, 2010 at 9:48 AM, Ramkrishna Swamy
>  wrote:
> > Hello list,
> >
> > When i call service getPartyTelephone from groovy then it shows error
> "you
> > must be logged in to complete the process", i saw the service definition,
> it
> > requires only partyId not userlogin and also auth is false. so what could
> be
> > problem.
> > Thanks in advance.
> >
> > --
> > Thanks
> > Ramkrishna
> >
>



-- 
Thanks
Ramkrishna


Error in service getPartyTelephone

2010-06-02 Thread Ramkrishna Swamy
Hello list,

When i call service getPartyTelephone from groovy then it shows error "you
must be logged in to complete the process", i saw the service definition, it
requires only partyId not userlogin and also auth is false. so what could be
problem.
Thanks in advance.

-- 
Thanks
Ramkrishna


Single and list form together

2010-05-19 Thread Ramkrishna Swamy
Hello list,

How can i display data through single and list form together. I have to
convert an ftl into form but ftl contains list as well other fields, so how
can i do so. Please help.

-- 
Thanks
Ramkrishna


Forms in pdf

2010-05-14 Thread Ramkrishna Swamy
Hello list,

I have a pdf and it includes various forms, say form1, form2, form3 etc., i
want to show form1 in top and then below it form2 and then form3 in front of
form1. Right now pdf shows all form one below another.
Thanks in advance.

-- 
Thanks
Ramkrishna


Re: Shipment complete and tracking code

2010-02-25 Thread Ramkrishna Swamy
Thanks BJ Freeman for your reply but those mail includes tracking code, how
to complete shipment rather than quick ship entire order button in order
mgr.

-- 
Thanks
Ramkrishna

On Thu, Feb 25, 2010 at 3:53 PM, BJ Freeman  wrote:

> I bumped a couple of previous emails to answer question about the two
> ways tracking codes are used.
>
>
> Ramkrishna Swamy sent the following on 2/25/2010 1:31 AM:
> > Hello list,
> >
> > I have to complete shipment for that i went into order component and
> clicked
> > on Pack shipment for ship group and packed and then complete the shipment
> > but when i see status of shipment it shows packed now what should i do to
> > complete the shipment??
> > Also i have to enter tracking code for the shipment where i can do it.
> > Thanks in advance.
> >
>
>


Shipment complete and tracking code

2010-02-25 Thread Ramkrishna Swamy
Hello list,

I have to complete shipment for that i went into order component and clicked
on Pack shipment for ship group and packed and then complete the shipment
but when i see status of shipment it shows packed now what should i do to
complete the shipment??
Also i have to enter tracking code for the shipment where i can do it.
Thanks in advance.

-- 
Thanks
Ramkrishna


Mail queuing problem

2010-02-24 Thread Ramkrishna Swamy
Hello list,

I am sending mail for a new customer registration using "creatCustomer"
events and this event uses service "sendGenericNotificationEmail" but
showing error so i used "sendCreatePartyEmailNotification" service  in the
event and mail is going to the customer properly but in console showing
following error


 exception report
--
Async-Service failed.
Exception: java.lang.Exception
Message: Invalid email body; null is not allowed
 stack trace
---
java.lang.Exception: Invalid email body; null is not allowed
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:76)
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242)
java.lang.Thread.run(Thread.java:619)


2010-02-24 13:06:42,171 (default-invoker-Thread-8)
[NotificationServices.java:205:ERROR] Problem getting the template URL:
component://ecommerce/widget/EmailOrderScreens.xml#CreateCustomerNotification
not found
2010-02-24 13:06:42,171 (default-invoker-Thread-8)
[NotificationServices.java:138:ERROR] prepareNotification failed: Problem
finding template; see logs
2010-02-24 13:06:42,171 (default-invoker-Thread-8)
[NotificationServices.java:160:ERROR] Invalid email body; null is not
allowed
2010-02-24 13:06:42,171 (default-invoker-Thread-8) [
ServiceDispatcher.java:530:ERROR] Error in Service
[sendGenericNotificationEmail]: Invalid email body; null is not allowed
2010-02-24 13:06:42,171 (default-invoker-Thread-8) [
TransactionUtil.java:286:ERROR]


010-02-24 13:24:40,315 (default-invoker-Thread-8)
[PersistedServiceJob.java:245:INFO ] Persisted Job [120162] Failed
Re-Scheduling : 1266998260253
2010-02-24 13:24:40,315 (default-invoker-Thread-7)
[PersistedServiceJob.java:245:INFO ] Persisted Job [120163] Failed
Re-Scheduling : 1266998260253
2010-02-24 13:24:40,519 (default-invoker-Thread-9)
[PersistedServiceJob.java:245:INFO ] Persisted Job [120164] Failed
Re-Scheduling : 1266998260425
2010-02-24 13:24:40,550 (default-invoker-Thread-11) [
JobInvoker.java:232:INFO ] Invoker [default-invoker-Thread-11] received job
[1266570044171] from poller [org.ofbiz.service.job.jobpol...@480c6c]
2010-02-24 13:24:40,581 (default-invoker-Thread-11)
[PersistedServiceJob.java:178:INFO ]
org.ofbiz.service.job.persistedservice...@ae2ff9[120165] -- Next runtime:
Thu Jan 01 05:29:59 IST 1970


at a first glance it is because of screen not finding in service
sendGenericNotificationEmail while my path is correct and also somewhere it
is queuing the earlier mail which was sent by the service
"sendGenericNotificationEmail" and when i start server or create a customer
then every time it shows the same error.

Has anyone idea how to stop this mail queuing problem?

Thanks in advance.


-- 
Thanks
Ramkrishna


Re: Parameters in seca

2010-02-10 Thread Ramkrishna Swamy
Thanks Hans, it worked.
-- 
Thanks
Ramkrishna

On Tue, Feb 9, 2010 at 7:21 PM, Hans Bakker
wrote:

> Did you read what I wrote? the map name 'parameters' is not required
> herefurther you can only use the fieldnames which are either input-
> or output parameters of the service you would like to check.
>
> Regards,
> Hans
>
>
> On Tue, 2010-02-09 at 19:13 +0530, Ramkrishna Swamy wrote:
> > Hello Hans,
> >
> > I tried with mapname but it shows in log mapnanme 'parameters' not found
> > setting default to null, how parameters will be available to the action
> > service.
> >
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
> On Tue, Feb 9, 2010 at 6:58 PM, Hans Bakker
> wrote:
>
> > Hi,
> >
> > the beauty of this system is that for most things you would like to do
> > there are many examples.
> >
> > I order to find an answer to your question I went into eclipse in
> OFBiz,
> > pressed ctrl-shift-r and entered seca* to look for examples how other
> > programmers created secasone of the first files which came up was
> > applications/accounting/servicedef/secas_payment.xml
> >
> > if you look in this file there are many examples how secas should be
> > coded. I searched for a word you used very often like 'parameters' i
> > could not found one
> >
> > could it be that the mapname 'parameters' is not required here?
> all
> > variables are already in he parameters map.
> >
> > Regards.
> > Hans
> >
> > On Tue, 2010-02-09 at 16:44 +0530, Ramkrishna Swamy wrote:
> > > Hi list,
> > > How can i get parameters in a seca, i am passing parameters as
> hidden
> > from
> > > ftl and i want to get these into the seca but shows null parameters.
> > > Following is my seca: -
> > >
> > > 
> > >  > operator="is-not-empty"/>
> > >  > > operator="is-not-empty"/>
> > >  operator="is-not-empty"/>
> > >  > > operator="is-not-empty"/>
> > >  > operator="is-not-empty"/>
> > >  > operator="is-not-empty"/>
> > > 
> > > 
> > >
> > >
> > > Thanks in advance.
> > >
> > --
> > Antwebsystems.com: Quality OFBiz services for competitive rates
> >
> >
>
>
>


Re: Parameters in seca

2010-02-09 Thread Ramkrishna Swamy
Hello Hans,

I tried with mapname but it shows in log mapnanme 'parameters' not found
setting default to null, how parameters will be available to the action
service.

-- 
Thanks
Ramkrishna

On Tue, Feb 9, 2010 at 6:58 PM, Hans Bakker
wrote:

> Hi,
>
> the beauty of this system is that for most things you would like to do
> there are many examples.
>
> I order to find an answer to your question I went into eclipse in OFBiz,
> pressed ctrl-shift-r and entered seca* to look for examples how other
> programmers created secasone of the first files which came up was
> applications/accounting/servicedef/secas_payment.xml
>
> if you look in this file there are many examples how secas should be
> coded. I searched for a word you used very often like 'parameters' i
> could not found one
>
> could it be that the mapname 'parameters' is not required here? all
> variables are already in he parameters map.....
>
> Regards.
> Hans
>
> On Tue, 2010-02-09 at 16:44 +0530, Ramkrishna Swamy wrote:
> > Hi list,
> > How can i get parameters in a seca, i am passing parameters as hidden
> from
> > ftl and i want to get these into the seca but shows null parameters.
> > Following is my seca: -
> >
> > 
> >  operator="is-not-empty"/>
> >  > operator="is-not-empty"/>
> > 
> >  > operator="is-not-empty"/>
> >  operator="is-not-empty"/>
> >  operator="is-not-empty"/>
> > 
> > 
> >
> >
> > Thanks in advance.
> >
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
>


Parameters in seca

2010-02-09 Thread Ramkrishna Swamy
Hi list,
How can i get parameters in a seca, i am passing parameters as hidden from
ftl and i want to get these into the seca but shows null parameters.
Following is my seca: -












Thanks in advance.

-- 
Thanks
Ramkrishna


Secure url in java

2010-02-03 Thread Ramkrishna Swamy
Hi list,

I have to pass secure parameters to a url in java, i saw how is secure
parameters are passed in ftl, screen and form widget but not in java.
Thanks in advance.

-- 
Thanks
Ramkrishna


SMS through OFBiz

2010-02-03 Thread Ramkrishna Swamy
Hello user,

Is there any way to send sms through ofbiz or anyone integrated sms service
with ofbiz.
Thanks in advance.

-- 
Thanks
Ramkrishna


Re: Different order status for COD and CC

2010-01-30 Thread Ramkrishna Swamy
Hello BJ Freeman,

Could you please give more details where will i have to change the code to
reflect desired status.

-- 
Thanks
Ramkrishna


On Fri, Jan 29, 2010 at 5:46 PM, BJ Freeman  wrote:

> I had a client that added 35 statuses. but it is not part of the svn,
> for the very reason Scott said.
>
> so feel free to add the functionality to your own Svn code base.
>
> Ramkrishna Swamy sent the following on 1/28/2010 9:50 PM:
> > Hi Scott,
> >
> > What could be possible harm if i do so, i don't have much knowledge of
> OFBiz
> > and since it's my client's requirement so i have to follow.
> >
>
>


Re: Different order status for COD and CC

2010-01-28 Thread Ramkrishna Swamy
Hi Scott,

What could be possible harm if i do so, i don't have much knowledge of OFBiz
and since it's my client's requirement so i have to follow.

-- 
Thanks
Ramkrishna

On Fri, Jan 29, 2010 at 11:04 AM, Scott Gray wrote:

> I would seriously consider why the same status has to have a different
> description depending on the payment method type.  You're adding unnecessary
> complexity when other simpler approaches could probably achieve the same
> goal.
>
> Regards
> Scott
>
> On 28/01/2010, at 10:12 PM, Ramkrishna Swamy wrote:
>
> > Hi Scott,
> >
> > Thanks for your reply, i have to set status "Order to be approved" for
> COD
> > and "Order Placed" for CC instead of "Created", as per my understanding
> i'll
> > have to create new status and have to call seca for changing the order
> > status while placing the order, is this correct or there is another way
> to
> > do.
> >
> > --
> > Thanks
> > Ramkrishna
> >
> > On Fri, Jan 29, 2010 at 4:41 AM, Scott Gray  >wrote:
> >
> >> Start off by setting "Auto Approve Order" on the Product Store to "N"
> which
> >> will cause all order to remain in the Created status and will need to be
> >> manually moved to Approved.
> >>
> >> Regards
> >> Scott
> >>
> >> HotWax Media
> >> http://www.hotwaxmedia.com
> >>
> >> On 28/01/2010, at 12:36 AM, Ramkrishna Swamy wrote:
> >>
> >>> Has anyone idea on this. Plz help.
> >>>
> >>> --
> >>> Thanks
> >>> Ramkrishna
> >>>
> >>>
> >>> On Mon, Dec 28, 2009 at 12:47 PM, Ramkrishna Swamy <
> >>> ramkrishna.swamyof...@gmail.com> wrote:
> >>>
> >>>> Hi list,
> >>>>
> >>>> I have a requirement of setting different order status, for COD status
> >>>> should be "Order to be Approved"  and for CC "Order Placed" is
> required,
> >> and
> >>>> in both cases order will be approved later on, how to implement this.
> >>>>
> >>>> Plz help.
> >>>>
> >>>> --
> >>>> Thanks
> >>>> Ramkrishna
> >>>>
> >>
> >>
>
>


Re: Different order status for COD and CC

2010-01-28 Thread Ramkrishna Swamy
Hi Scott,

Thanks for your reply, i have to set status "Order to be approved" for COD
and "Order Placed" for CC instead of "Created", as per my understanding i'll
have to create new status and have to call seca for changing the order
status while placing the order, is this correct or there is another way to
do.

-- 
Thanks
Ramkrishna

On Fri, Jan 29, 2010 at 4:41 AM, Scott Gray wrote:

> Start off by setting "Auto Approve Order" on the Product Store to "N" which
> will cause all order to remain in the Created status and will need to be
> manually moved to Approved.
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 28/01/2010, at 12:36 AM, Ramkrishna Swamy wrote:
>
> > Has anyone idea on this. Plz help.
> >
> > --
> > Thanks
> > Ramkrishna
> >
> >
> > On Mon, Dec 28, 2009 at 12:47 PM, Ramkrishna Swamy <
> > ramkrishna.swamyof...@gmail.com> wrote:
> >
> >> Hi list,
> >>
> >> I have a requirement of setting different order status, for COD status
> >> should be "Order to be Approved"  and for CC "Order Placed" is required,
> and
> >> in both cases order will be approved later on, how to implement this.
> >>
> >> Plz help.
> >>
> >> --
> >> Thanks
> >> Ramkrishna
> >>
>
>


Re: Different order status for COD and CC

2010-01-27 Thread Ramkrishna Swamy
Has anyone idea on this. Plz help.

-- 
Thanks
Ramkrishna


On Mon, Dec 28, 2009 at 12:47 PM, Ramkrishna Swamy <
ramkrishna.swamyof...@gmail.com> wrote:

> Hi list,
>
> I have a requirement of setting different order status, for COD status
> should be "Order to be Approved"  and for CC "Order Placed" is required, and
> in both cases order will be approved later on, how to implement this.
>
> Plz help.
>
> --
> Thanks
> Ramkrishna
>


Re: Show and pass hidden value in forms

2010-01-11 Thread Ramkrishna Swamy
Hi Bilgin,

I have to show field in editable mode and want to pass as hidden field to
service, display only shows the filed but not in editable mode.

-- 
Thanks
Ramkrishna

On Mon, Jan 11, 2010 at 2:44 PM, Bilgin Ibryam  wrote:

> Ramkrishna Swamy wrote:
>
>> Hi list,
>>
>> I have to show a field as text and pass this value as hidden to a service
>> in
>> form widget, how will this be done.
>> Plz help, thanks in advance.
>>
>>
>>
> You have to use a "display" element with also-hidden=true attribute inside
> a form field.
>
> Bilgin
>


Show and pass hidden value in forms

2010-01-11 Thread Ramkrishna Swamy
Hi list,

I have to show a field as text and pass this value as hidden to a service in
form widget, how will this be done.
Plz help, thanks in advance.

-- 
Thanks
Ramkrishna


Different order status for COD and CC

2009-12-27 Thread Ramkrishna Swamy
Hi list,

I have a requirement of setting different order status, for COD status
should be "Order to be Approved"  and for CC "Order Placed" is required, and
in both cases order will be approved later on, how to implement this.

Plz help.

-- 
Thanks
Ramkrishna


Re: Getting Following Error

2009-12-18 Thread Ramkrishna Swamy
Hi Abhijeet,

Check weather your DB has following data or not:












-- 
Thanks
Ramkrishna

On Fri, Dec 18, 2009 at 3:18 PM, Abhijeet Pandey
wrote:

> Hi,
>
> Facing below error after packing and doing the shipment. Can anybody plz
> point out what could be the reason?
>
> I am not seeing any table called "OFBIZ.SALES_INVOICE_ITEM_FACT" in my
> MSSQL.
>
>
> Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service
> invocation error (Could not commit transaction for service [completePack]
> call: Roll back error, could not commit transaction, was rolled back
> instead
> because of: Failure in create operation for entity [SalesInvoiceItemFact]:
> org.ofbiz.entity.GenericEntityException: Error while inserting:
>
> [GenericEntity:SalesInvoiceItemFact][billToCustomerDimId,_NA_(java.lang.String)][createdStamp,2009-12-18
> 15:01:36.343(java.sql.Timestamp)][createdTxStamp,2009-12-18
>
> 15:01:32.921(java.sql.Timestamp)][invoiceDateDimId,_NF_(java.lang.String)][invoiceId,CI69(java.lang.String)][invoiceItemSeqId,1(java.lang.String)][lastUpdatedStamp,2009-12-18
> 15:01:36.343(java.sql.Timestamp)][lastUpdatedTxStamp,2009-12-18
>
> 15:01:32.921(java.sql.Timestamp)][orderId,_NA_(java.lang.String)][origCurrencyDimId,_NF_(java.lang.String)][productDimId,_NF_(java.lang.String)]
> (SQL Exception while executing the following:INSERT INTO
> OFBIZ.SALES_INVOICE_ITEM_FACT (INVOICE_ID, INVOICE_ITEM_SEQ_ID, ORDER_ID,
> INVOICE_DATE_DIM_ID, PRODUCT_DIM_ID, BILL_TO_CUSTOMER_DIM_ID,
> ORIG_CURRENCY_DIM_ID, QUANTITY, EXT_GROSS_AMOUNT, EXT_DISCOUNT_AMOUNT,
> EXT_NET_AMOUNT, EXT_TAX_AMOUNT, EXT_MAN_FIXED_COST, EXT_MAN_VAR_COST,
> EXT_STORAGE_COST, EXT_DISTRIBUTION_COST, CONTRIBUTION_AMOUNT,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
> (INSERT on table 'SALES_INVOICE_ITEM_FACT' caused a violation of foreign
> key
> constraint 'SIIF_INVDATE' for key (_NF_). The statement has been rolled
> back.)). Rolling back transaction.org.ofbiz.entity.GenericEntityException:
> Error while inserting:
>
> [GenericEntity:SalesInvoiceItemFact][billToCustomerDimId,_NA_(java.lang.String)][createdStamp,2009-12-18
> 15:01:36.343(java.sql.Timestamp)][createdTxStamp,2009-12-18
>
> 15:01:32.921(java.sql.Timestamp)][invoiceDateDimId,_NF_(java.lang.String)][invoiceId,CI69(java.lang.String)][invoiceItemSeqId,1(java.lang.String)][lastUpdatedStamp,2009-12-18
> 15:01:36.343(java.sql.Timestamp)][lastUpdatedTxStamp,2009-12-18
>
> 15:01:32.921(java.sql.Timestamp)][orderId,_NA_(java.lang.String)][origCurrencyDimId,_NF_(java.lang.String)][productDimId,_NF_(java.lang.String)]
> (SQL Exception while executing the following:INSERT INTO
> OFBIZ.SALES_INVOICE_ITEM_FACT (INVOICE_ID, INVOICE_ITEM_SEQ_ID, ORDER_ID,
> INVOICE_DATE_DIM_ID, PRODUCT_DIM_ID, BILL_TO_CUSTOMER_DIM_ID,
> ORIG_CURRENCY_DIM_ID, QUANTITY, EXT_GROSS_AMOUNT, EXT_DISCOUNT_AMOUNT,
> EXT_NET_AMOUNT, EXT_TAX_AMOUNT, EXT_MAN_FIXED_COST, EXT_MAN_VAR_COST,
> EXT_STORAGE_COST, EXT_DISTRIBUTION_COST, CONTRIBUTION_AMOUNT,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
> (INSERT on table 'SALES_INVOICE_ITEM_FACT' caused a violation of foreign
> key
> constraint 'SIIF_INVDATE' for key (_NF_). The statement has been rolled
> back.)) (Error while inserting:
>
> [GenericEntity:SalesInvoiceItemFact][billToCustomerDimId,_NA_(java.lang.String)][createdStamp,2009-12-18
> 15:01:36.343(java.sql.Timestamp)][createdTxStamp,2009-12-18
>
> 15:01:32.921(java.sql.Timestamp)][invoiceDateDimId,_NF_(java.lang.String)][invoiceId,CI69(java.lang.String)][invoiceItemSeqId,1(java.lang.String)][lastUpdatedStamp,2009-12-18
> 15:01:36.343(java.sql.Timestamp)][lastUpdatedTxStamp,2009-12-18
>
> 15:01:32.921(java.sql.Timestamp)][orderId,_NA_(java.lang.String)][origCurrencyDimId,_NF_(java.lang.String)][productDimId,_NF_(java.lang.String)]
> (SQL Exception while executing the following:INSERT INTO
> OFBIZ.SALES_INVOICE_ITEM_FACT (INVOICE_ID, INVOICE_ITEM_SEQ_ID, ORDER_ID,
> INVOICE_DATE_DIM_ID, PRODUCT_DIM_ID, BILL_TO_CUSTOMER_DIM_ID,
> ORIG_CURRENCY_DIM_ID, QUANTITY, EXT_GROSS_AMOUNT, EXT_DISCOUNT_AMOUNT,
> EXT_NET_AMOUNT, EXT_TAX_AMOUNT, EXT_MAN_FIXED_COST, EXT_MAN_VAR_COST,
> EXT_STORAGE_COST, EXT_DISTRIBUTION_COST, CONTRIBUTION_AMOUNT,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
> (INSERT on table 'SALES_INVOICE_ITEM_FACT' caused a violation of foreign
> key
> constraint 'SIIF_INVDATE' for key (_NF_). The statement has been rolled
> back.
>
> Thanks,
>
> --
> Abhijeet Pandey
>


Why promotion category on ecommerce

2009-12-15 Thread Ramkrishna Swamy
Hello list,
I want to know why only promotion category's products are shown in
ecommerce, why not other category's product.

-- 
Thanks
Ramkrishna


Re: How to set partyId in request in javascript

2009-11-12 Thread Ramkrishna Swamy
Thanks Rishi, I try this and if i have any doubt then get back to you.

Thanks
Ramkrishna

On Wed, Nov 11, 2009 at 11:51 AM, Rishi Solanki wrote:

> I suggested the both way, If you want to pass the parameter then use ;
> parameters: {productPromoCodeId:$F('productPromoCode')} line 418.
> Here the service will get the productPromoCodeId as parameter, note there
> is
> no form submit.
>
> Here
> Rishi Solanki
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
>
>
> On Tue, Nov 10, 2009 at 10:21 AM, Ramkrishna Swamy <
> ramkrishna.swamyof...@gmail.com> wrote:
>
> > Hi Rishi,
> > I saw the suggested file but in the file parameters are sent after
> > submitting the form but in my case I don't submit the form and want to
> pass
> > the parameter.
> >
> > --
> > Thanks
> > Ramkrishna
> >
> > On Mon, Nov 9, 2009 at 5:12 PM, Rishi Solanki  > >wrote:
> >
> > > Hi Ram,
> > >
> > > If you are on same window then you can easily copy value by using its
> id.
> > > $('targetId').value = $('sourceId').value in JS.
> > > If you need to pass it as request then can see many example of form
> > > parameters submission in checkoutProcess.js.
> > > If wanna to submit whole form then go like ;
> > > parameters: $('shippingOptionForm').serialize(), requestHeaders:
> {Accept:
> > > 'application/json'}
> > > if wanna to submit single or two value then go like ;
> > > parameters: {productPromoCodeId:$F('productPromoCode')}
> > >
> > > Reference file in OFBiz -
> > > /ecommerce/webapp/ecommerce/images/checkoutProcess.js
> > >
> > > Rishi Solanki
> > > Enterprise Software Developer
> > > HotWax Media Pvt. Ltd.
> > >
> > >
> > > On Fri, Nov 6, 2009 at 1:47 PM, Ramkrishna Swamy <
> > > ramkrishna.swamyof...@gmail.com> wrote:
> > >
> > > > Is this possible or not???
> > > > Actually i have a drop down and i want selected partyid to be passed
> on
> > > to
> > > > other form without submitting the first form.
> > > > plz hlp
> > > >
> > > > Thanks
> > > > Ramkrishna
> > > >
> > > >
> > > > On Thu, Nov 5, 2009 at 12:36 PM, RamKrishna Swamy <
> > > > ramkrishna.swamyof...@gmail.com> wrote:
> > > >
> > > > > Hi list,
> > > > >
> > > > > How can I set a selected partyId's value in request/parameter in
> > > > > javascript??
> > > > > Please help.
> > > > >
> > > > > Thanks
> > > > > Ramkrishna
> > > > >
> > > >
> > >
> >
>


Re: groovy in javascript

2009-11-09 Thread Ramkrishna Swamy
Any update on this.Deepa have you got something, if yes please
share, I am also having same problem.

-- 
Thanks
Ramkrishna


On Mon, Nov 9, 2009 at 12:12 PM, Raj Saini  wrote:

> Hi Deepa,
>
> I am not sure if I understood well what you are trying to achieve. You have
> a drop down. Value selected in the drop down will go as a form field once
> you submit the form. This value can be collected in the Groovy script. I do
> not see a way how you can get some thing in Groovy script without submitting
> the form. If you want to do some thing on selection of drop down, you can
> use JavaScript events such as onChange and then you can fire a Ajax request
> whenever value of the drop down changes.
>
>
> Thanks,
>
> Raj
>
> Deepa Mandal wrote:
>
>> Following is my problem:
>> I have a drop down in a form and upon selecting a value from this drop
>> down
>> I have to send contactMechId of that particular value to the included ftl
>> in
>> the form and *without submitting the form*. If I set the contactMechId in
>> groovy or in request then I can get this in the included ftl, please
>> suggest
>> other way through which I can get the contactMechId in groovy or in
>> request.
>>
>>
>>
>
>


Re: How to set partyId in request in javascript

2009-11-09 Thread Ramkrishna Swamy
Hi Rishi,
I saw the suggested file but in the file parameters are sent after
submitting the form but in my case I don't submit the form and want to pass
the parameter.

-- 
Thanks
Ramkrishna

On Mon, Nov 9, 2009 at 5:12 PM, Rishi Solanki wrote:

> Hi Ram,
>
> If you are on same window then you can easily copy value by using its id.
> $('targetId').value = $('sourceId').value in JS.
> If you need to pass it as request then can see many example of form
> parameters submission in checkoutProcess.js.
> If wanna to submit whole form then go like ;
> parameters: $('shippingOptionForm').serialize(), requestHeaders: {Accept:
> 'application/json'}
> if wanna to submit single or two value then go like ;
> parameters: {productPromoCodeId:$F('productPromoCode')}
>
> Reference file in OFBiz -
> /ecommerce/webapp/ecommerce/images/checkoutProcess.js
>
> Rishi Solanki
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
>
>
> On Fri, Nov 6, 2009 at 1:47 PM, Ramkrishna Swamy <
> ramkrishna.swamyof...@gmail.com> wrote:
>
> > Is this possible or not???
> > Actually i have a drop down and i want selected partyid to be passed on
> to
> > other form without submitting the first form.
> > plz hlp
> >
> > Thanks
> > Ramkrishna
> >
> >
> > On Thu, Nov 5, 2009 at 12:36 PM, RamKrishna Swamy <
> > ramkrishna.swamyof...@gmail.com> wrote:
> >
> > > Hi list,
> > >
> > > How can I set a selected partyId's value in request/parameter in
> > > javascript??
> > > Please help.
> > >
> > > Thanks
> > > Ramkrishna
> > >
> >
>


Re: How to set partyId in request in javascript

2009-11-06 Thread Ramkrishna Swamy
Is this possible or not???
Actually i have a drop down and i want selected partyid to be passed on to
other form without submitting the first form.
plz hlp

Thanks
Ramkrishna


On Thu, Nov 5, 2009 at 12:36 PM, RamKrishna Swamy <
ramkrishna.swamyof...@gmail.com> wrote:

> Hi list,
>
> How can I set a selected partyId's value in request/parameter in
> javascript??
> Please help.
>
> Thanks
> Ramkrishna
>