Hi
IAm trying to start the application by following the "example" application in webtools. but i am not clear with few things ..please somebody help me out.. Someone suggest me if my flow which Iam following is correct. In ExampleForms.xml, for EditExample form, the target is "updateExample" does it mean that on click of submit it targets this phrase "updateExample" and flows thru controller looks for uri="updateExample" and there it finds the event: <event type="service" invoke="updateExample"/> in: <request-map uri="updateExample"> <security https="true" auth="true"/> <event type="service" invoke="updateExample"/> <response name="success" type="view" value="EditExample"/> <response name="error" type="view" value="EditExample"/> </request-map> it again is redirected to "EditExample" in screens and from there again to EditExample in form. Iam not clear with the flow here Can some one explain me please and I dint understand the servies: updateExample in services.xml <service name="updateExample" default-entity-name="Example" engine="entity-auto" invoke="update" auth="true"> <description>Update a Example</description> <permission-service service-name="exampleGenericPermission" main-action="UPDATE"/> <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> <attribute name="oldStatusId" type="String" mode="OUT" optional="false"/> </service> and where is: Example size,Example date,Another date ,Another test mentioned in the code?? i cant find it ..but i can see it on the UI part in Editexample Thankyou very much Adithi |
flow parts you missing is that:
then context from the pages that targets updateExample has the info for service. if you look at https://localhost:8443/webtools/control/availableServices?sel_service_name=updateExample you will see the inputs that must be in the context. once the service is completed it returns a string success or error the <response acts on that return. Note using the webtools really helps. adithi agarwal sent the following on 9/24/2008 12:35 PM: > Hi > IAm > trying to start the application by following the "example" application > in webtools. but i am not clear with few things ..please somebody help > me out.. Someone suggest me if my flow which Iam following is correct. > In > ExampleForms.xml, for EditExample form, the target is "updateExample" > does it mean that on click of submit it targets this phrase > "updateExample" and flows thru controller looks for > uri="updateExample" and there it finds the event: > <event type="service" invoke="updateExample"/> in: > > <request-map uri="updateExample"> > <security https="true" auth="true"/> > <event type="service" invoke="updateExample"/> > <response name="success" type="view" value="EditExample"/> > <response name="error" type="view" value="EditExample"/> > </request-map> > > it again is redirected to "EditExample" in screens and from there again to EditExample in form. > > Iam not clear with the flow here Can some one explain me please > and I dint understand the servies: updateExample in services.xml > > <service name="updateExample" default-entity-name="Example" engine="entity-auto" invoke="update" auth="true"> > <description>Update a Example</description> > <permission-service service-name="exampleGenericPermission" main-action="UPDATE"/> > <auto-attributes include="pk" mode="IN" optional="false"/> > <auto-attributes include="nonpk" mode="IN" optional="true"/> > <attribute name="oldStatusId" type="String" mode="OUT" optional="false"/> > </service> > > and > where is: Example size,Example date,Another date ,Another test > mentioned in the code?? i cant find it ..but i can see it on the UI > part in Editexample > > > Thankyou very much > > Adithi > > > > |
Hello Aditi ,
I am also new to ofbiz , but i think you should have look on Practice Application. This will help you a lot and it will clear all those confusion which you are facing. http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application Thanks Surya Kusumakar On Thu, Sep 25, 2008 at 2:14 AM, BJ Freeman <[hidden email]> wrote: > flow parts you missing is that: > then context from the pages that targets updateExample has the info for > service. > if you look at > > https://localhost:8443/webtools/control/availableServices?sel_service_name=updateExample > you will see the inputs that must be in the context. > once the service is completed it returns a string success or error the > <response acts on that return. > > Note using the webtools really helps. > > > adithi agarwal sent the following on 9/24/2008 12:35 PM: > > Hi > > IAm > > trying to start the application by following the "example" application > > in webtools. but i am not clear with few things ..please somebody help > > me out.. Someone suggest me if my flow which Iam following is correct. > > In > > ExampleForms.xml, for EditExample form, the target is "updateExample" > > does it mean that on click of submit it targets this phrase > > "updateExample" and flows thru controller looks for > > uri="updateExample" and there it finds the event: > > <event type="service" invoke="updateExample"/> in: > > > > <request-map uri="updateExample"> > > <security https="true" auth="true"/> > > <event type="service" invoke="updateExample"/> > > <response name="success" type="view" value="EditExample"/> > > <response name="error" type="view" value="EditExample"/> > > </request-map> > > > > it again is redirected to "EditExample" in screens and from there again > to EditExample in form. > > > > Iam not clear with the flow here Can some one explain me please > > and I dint understand the servies: updateExample in services.xml > > > > <service name="updateExample" default-entity-name="Example" > engine="entity-auto" invoke="update" auth="true"> > > <description>Update a Example</description> > > <permission-service service-name="exampleGenericPermission" > main-action="UPDATE"/> > > <auto-attributes include="pk" mode="IN" optional="false"/> > > <auto-attributes include="nonpk" mode="IN" optional="true"/> > > <attribute name="oldStatusId" type="String" mode="OUT" > optional="false"/> > > </service> > > > > and > > where is: Example size,Example date,Another date ,Another test > > mentioned in the code?? i cant find it ..but i can see it on the UI > > part in Editexample > > > > > > Thankyou very much > > > > Adithi > > > > > > > > > > |
Free forum by Nabble | Edit this page |