How can i get the values from the xml form

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How can i get the values from the xml form

skpradeepkumar
Hi all,

 I have added some options ( such as for city text area, for state drop down
box, for gender also drop down box etc  ) , to the contact list
communication event. I want the values of these options but i don't want to
store these values in the database and how can i get these
values to the java file.

--
With regards,
S K Pradeep kumar
Reply | Threaded
Open this post in threaded view
|

Re: How can i get the values from the xml form

BJ Freeman
first get a feel for the way ofbiz is built
 http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams
and
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index

especially how screens are built.
depending on your goal you have the choice to use the ones available or
to change them.

http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide
and
http://docs.ofbiz.org/display/OFBENDUSER/Apache+OFBiz+Business+Setup+Guide
will get you started on how and some tips and tricks.

though it does not seem updated here is a place to put thing that are
being worked on
http://docs.ofbiz.org/display/OFBENDUSER/Areas+Being+Worked+On







Pradeep Kumar sent the following on 6/6/2008 11:24 AM:
> Hi all,
>
>  I have added some options ( such as for city text area, for state drop down
> box, for gender also drop down box etc  ) , to the contact list
> communication event. I want the values of these options but i don't want to
> store these values in the database and how can i get these
> values to the java file.
>

Reply | Threaded
Open this post in threaded view
|

Re: How can i get the values from the xml form

Ashish Vijaywargiya
In reply to this post by skpradeepkumar
If its your custom form then you can get this values easily in Java file.

    <request-map uri="createCustomCommunicationEvent">
        <security https="true" auth="true"/>
        <event type="java" path="org.ofbiz.party.PartyCustomEvents"
invoke="createCustomCommunicationEvent"/>
        <response name="success" type="view" value="your-own-view-name"/>
        <response name="error" type="view" value="your-own-view-name"/>
    </request-map>

After submitting form you can get this values in Java files by following
sentences :-

String myCity = request.getParameter("myCity");
String myState = request.getParameter("myState");

Pradeep , this are really very simple things.
You can increase your knowledge by reading so many documents present on
Ofbiz confluence.

Following link is the main link for the documents.
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index

--
Ashish

On Fri, Jun 6, 2008 at 2:24 PM, Pradeep Kumar <
[hidden email]> wrote:

> Hi all,
>
>  I have added some options ( such as for city text area, for state drop
> down
> box, for gender also drop down box etc  ) , to the contact list
> communication event. I want the values of these options but i don't want to
> store these values in the database and how can i get these
> values to the java file.
>
> --
> With regards,
> S K Pradeep kumar
>