Hey everyone,
by pressing the submit button on a form, I am trying to call several services one after the other. First I want to call a service that creates a productCategory and then use the productCategoryId and the rest of the form field values to call the addProductCategoryToCategory service. Now my code looks like this: I created a form as the following Forms*xml: <form name="test" target="createCategoryI18n" type="single" > <field name="productCategoryId" title=""> <display/> </field> <field name="productCategoryTypeId" > <hidden value="QUICKADD_CATEGORY" /> </field> <field name="fromDate" > <date-time type="timestamp" default-value="${nowTimestamp}"/> </field> <field name="parentProductCategoryId" title="${uiLabelMap.FormFieldTitle_parentCategoryId}" tooltip="tooltip-text"> <drop-down allow-empty="false" current-description="" current="selected" no-current-selected-key="guys" > <entity-options description="${categoryName}" key-field-name="productCategoryId" entity-name="ProductCategoryRollupAndChild"> <entity-constraint name="parentProductCategoryId" operator="equals" value="bproot"/> <entity-order-by field-name="categoryName"/> </entity-options> </drop-down> </field> <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field> </form> Then I added a service as such: <service name="createCategoryI18n" default-entity-name="ProductCategory" engine="entity-auto" invoke="create" auth="true"> <description>Create a Category</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="pk" mode="OUT" optional="false"/> <auto-attributes include="nonpk" mode="INOUT" optional="true"/> </service> And lastly I tried to have a SECA create the needed Rollup once needed: <eca service="createCategoryI18n" event="commit"> <action service="addProductCategoryToCategory " mode="sync"/> </eca> But of course, this won't work, because then the form parameters go missing. I know that this makes sense, as the SECAs are not context related and the parameters not needed by a service are removed from the context... yet my question remains: how can I accomplish the above? is there a way to have a form call multiple services that are related to one another? |
Check out the 'Group Service' section in the:
http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application and synchronous services in the Service Engine Guide: http://docs.ofbiz.org/display/OFBTECH/Service+Engine+Guide -CJ On Wed, Feb 4, 2009 at 12:20 PM, madppiper <[hidden email]> wrote: > > Hey everyone, > > by pressing the submit button on a form, I am trying to call several > services one after the other. First I want to call a service that creates a > productCategory and then use the productCategoryId and the rest of the form > field values to call the addProductCategoryToCategory service. > > Now my code looks like this: > > I created a form as the following Forms*xml: > > <form name="test" target="createCategoryI18n" type="single" > > > <!-- Create Category --> > <field name="productCategoryId" title=""> > <display/> > </field> > > <field name="productCategoryTypeId" > > <hidden value="QUICKADD_CATEGORY" /> > </field> > > <!-- Add ParentRollup --> > <field name="fromDate" > > <date-time type="timestamp" default-value="${nowTimestamp}"/> > </field> > > <field name="parentProductCategoryId" > title="${uiLabelMap.FormFieldTitle_parentCategoryId}" > tooltip="tooltip-text"> > <drop-down allow-empty="false" current-description="" > current="selected" no-current-selected-key="guys" > > <entity-options description="${categoryName}" > key-field-name="productCategoryId" > entity-name="ProductCategoryRollupAndChild"> > <entity-constraint name="parentProductCategoryId" > operator="equals" value="bproot"/> > <entity-order-by field-name="categoryName"/> > </entity-options> > </drop-down> > </field> > > <field name="submitButton" > title="${uiLabelMap.CommonAdd}"><submit > button-type="button"/></field> > </form> > > > Then I added a service as such: > > <service name="createCategoryI18n" default-entity-name="ProductCategory" > engine="entity-auto" invoke="create" auth="true"> > <description>Create a Category</description> > <permission-service > service-name="exampleGenericPermission" > main-action="CREATE"/> > <auto-attributes include="pk" mode="OUT" > optional="false"/> > <auto-attributes include="nonpk" > mode="INOUT" optional="true"/> > </service> > > > > And lastly I tried to have a SECA create the needed Rollup once needed: > > <eca service="createCategoryI18n" event="commit"> > <action service="addProductCategoryToCategory " mode="sync"/> > </eca> > > > > > But of course, this won't work, because then the form parameters go > missing. > I know that this makes sense, as the SECAs are not context related and the > parameters not needed by a service are removed from the context... yet my > question remains: how can I accomplish the above? is there a way to have a > form call multiple services that are related to one another? > -- > View this message in context: > http://www.nabble.com/Form-Widget-call-multiple-services--tp21836332p21836332.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > |
Ah,
well. To be honest, I already gave that a try prior posting the last message. Here's what I got for the creation of the category Service (createCategoryRollupI18n = addProductCategoryToCategory ): <group name="createCategoryI18nAndRollup" send-mode="all" > <invoke name="createCategoryI18n" mode="async" /> <invoke name="createCategoryRollupI18n" mode="async"/> </group> Of course I disabled the eca before testing, yet the above misses the productCategoryId from working... |
Watch out for asynchronous stuff... that means it doesn't wait to get results back before moving on. -David On Feb 4, 2009, at 11:54 AM, madppiper wrote: > > Ah, > > well. To be honest, I already gave that a try prior posting the last > message. Here's what I got for the creation of the category Service > (createCategoryRollupI18n = addProductCategoryToCategory ): > > > <group name="createCategoryI18nAndRollup" send-mode="all" > > <invoke name="createCategoryI18n" mode="async" /> > <invoke name="createCategoryRollupI18n" mode="async"/> > </group> > > > Of course I disabled the eca before testing, yet the above misses the > productCategoryId from working... > -- > View this message in context: http://www.nabble.com/Form-Widget-call-multiple-services--tp21836332p21836975.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Well, true.
I was hoping that that way the second would only be invoked once all parameters are set in the context (at least that's what I understood about the Job Scheduler)... But it doesn't really make any difference in this case. Even if I set it to sync, the parameter will be missing... :( On a sidenote: Perhaps I am understanding this topic completely wrong (always a possibility), but taken from the http://docs.ofbiz.org/display/OFBTECH/Service+Engine+Guide the only difference from the Service Groups and ECAs should only be the result-to-context anyhow, correct (which I could have set in the ECA manually as well)? |
Well, perhaps to clarifily a little: I added the following service to the service.xml file, that will eventually call the service group: <service name="createCategoryI18nAndRollup" engine="group" location="createCategoryI18nAndRollup" invoke="" auth="true" > <description>Creates a WorkEffort entity and WorkEffortAssoc</description> <auto-attributes include="pk" mode="INOUT" optional="false" entity-name="ProductCategory"/> <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="ProductCategory"/> <auto-attributes include="pk" mode="INOUT" optional="false" entity-name="ProductCategoryRollup"/> <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="ProductCategoryRollup"/> </service> Still no luck, calling it... |
In reply to this post by David E Jones-3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 yeah the only way I remember is A = Not in Greek so asynchronous means not synchronous David E Jones sent the following on 2/4/2009 11:01 AM: > > Watch out for asynchronous stuff... that means it doesn't wait to get > results back before moving on. > > -David > > > On Feb 4, 2009, at 11:54 AM, madppiper wrote: > >> >> Ah, >> >> well. To be honest, I already gave that a try prior posting the last >> message. Here's what I got for the creation of the category Service >> (createCategoryRollupI18n = addProductCategoryToCategory ): >> >> >> <group name="createCategoryI18nAndRollup" send-mode="all" > >> <invoke name="createCategoryI18n" mode="async" /> >> <invoke name="createCategoryRollupI18n" mode="async"/> >> </group> >> >> >> Of course I disabled the eca before testing, yet the above misses the >> productCategoryId from working... >> -- >> View this message in context: >> http://www.nabble.com/Form-Widget-call-multiple-services--tp21836332p21836975.html >> >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > > > Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJifR7rP3NbaWWqE4RArjTAJ9kIhW4gcDUcFoXxnAqFzpkMC10OgCbBUo/ DMajDXmuMjaTC58EotCu330= =vnuv -----END PGP SIGNATURE----- |
Well, I have begun to wildly guess around now. As the OFBIZ Developer Beginners Guide seems to differ a lot from the Service Engine guide explanation of service groups. I have now tried the following:
<service name="createCategoryI18nAndRollupi" engine="group" auth="true"> <description>Creates a party, person and party role Client</description> <group> <invoke name="createCategoryI18n" result-to-context="true" /> <invoke name="addProductCategoryToCategory" /> </group> </service> I added the above to the service.xml file and removed the service_groups.xml file altogether. That was, at least, what any example I could find would do... but, the error I receive remains: The Following Errors Occurred: The following required parameter is missing: [createCategoryI18nAndRollupi.productCategoryId] This doesn't make any sense anymore... |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 createCategoryI18n has to finish before calling addProductCategoryToCategory and createCategoryI18n need an OUT with the same name as the In of addProductCategoryToCategory May want to put a log the two to see what is being passed my 2 cents madppiper sent the following on 2/4/2009 1:01 PM: > Well, I have begun to wildly guess around now. As the OFBIZ Developer > Beginners Guide seems to differ a lot from the Service Engine guide > explanation of service groups. I have now tried the following: > > > <service name="createCategoryI18nAndRollupi" engine="group" auth="true"> > <description>Creates a party, person and party role > Client</description> > <group> > <invoke name="createCategoryI18n" result-to-context="true" /> > <invoke name="addProductCategoryToCategory" /> > </group> > </service> > > I added the above to the service.xml file and removed the service_groups.xml > file altogether. That was, at least, what any example I could find would > do... but, the error I receive remains: > > > > > The Following Errors Occurred: > The following required parameter is missing: > [createCategoryI18nAndRollupi.productCategoryId] > > > This doesn't make any sense anymore... Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJigl1rP3NbaWWqE4RAlv/AJ9+q5OwJGDiaqN/ASQoS+xOTqRzAQCeK+It Oj5w5Bk7eXqEkAx7JOypGdA= =XRLE -----END PGP SIGNATURE----- |
Well, thanks for the reply. :)
The out parameters of createCategoryI18n is the productCategoryId (createCategoryI18n itself is a simple auto create function for ProductCategory). The difficulties I am having are from synching the both services just right... as with SECAs I could have called the second service on "return", which would have allowed the productCategoryId parameter to be passed (but would have left the form parameters out of the equation), but as for service groups, I am now stuck with calling the two services in the correct order... Isn't there a way to call the second service on "return" here too? |
Administrator
|
Service groups are pretty simple there is only the group send mode ("all" by default which means services called in order. The other
send modes are not interesting for you), the services mode (sync, async) and the result-to-context (false by default). Anyway this is all in service-group.xsd Jacques From: "madppiper" <[hidden email]> > > Well, thanks for the reply. :) > > The out parameters of createCategoryI18n is the productCategoryId > (createCategoryI18n itself is a simple auto create function for > ProductCategory). The difficulties I am having are from synching the both > services just right... > > as with SECAs I could have called the second service on "return", which > would have allowed the productCategoryId parameter to be passed (but would > have left the form parameters out of the equation), but as for service > groups, I am now stuck with calling the two services in the correct order... > Isn't there a way to call the second service on "return" here too? > -- > View this message in context: http://www.nabble.com/Form-Widget-call-multiple-services--tp21836332p21847294.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Well, let me sum this up (I am really hoping that somebody could hint me to my mistake in this logic). I did the following:
1) I added the following to the controller: <request-map uri="createCategoryI18nAndRollup"> <security https="true" auth="true"/> <event type="service" invoke="createCategoryI18nAndRollup"/> <response name="success" type="view" value="categories"/> </request-map> 2) I added the following to my service_groups.xml file: <group name="createCategoryI18nAndRollup" send-mode="all" > <invoke name="createCategoryI18n" mode="sync" result-to-context="true"/> <invoke name="createCategoryRollupI18n" mode="sync"/> </group> 3) I added the following to the service xml file: <service name="createCategoryI18n" default-entity-name="ProductCategory" engine="entity-auto" invoke="create" auth="true"> <description>Create a Category</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="pk" mode="OUT" optional="false"/> <auto-attributes include="nonpk" mode="INOUT" optional="true"/> <override name="productCategoryId" optional="false"/> </service> <service name="createCategoryRollupI18n" default-entity-name="ProductCategoryRollup" engine="entity-auto" invoke="create" auth="true"> <description>Create a Category Rollup</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="pk" mode="INOUT" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="createCategoryI18nAndRollup" engine="group" location="createCategoryI18nAndRollup" invoke="" auth="true"> <description>Creates a WorkEffort entity and WorkEffortAssoc</description> </service> 4) I added the following form: <form name="test" target="createCategoryI18nAndRollup" type="single" > <field name="productCategoryId" title=""> <display/> </field> <field name="productCategoryTypeId" > <hidden value="QUICKADD_CATEGORY" /> </field> <field name="fromDate" > <date-time type="timestamp" default-value="${nowTimestamp}"/> </field> <field name="parentProductCategoryId" title="${uiLabelMap.FormFieldTitle_parentCategoryId}" tooltip="tooltip-text"> <drop-down allow-empty="false" current-description="" current="selected" no-current-selected-key="guys" > <entity-options description="${categoryName}" key-field-name="productCategoryId" entity-name="ProductCategoryRollupAndChild"> <entity-constraint name="parentProductCategoryId" operator="equals" value="bproot"/> <entity-order-by field-name="categoryName"/> </entity-options> </drop-down> </field> <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field> </form> With all of the above I want to: a) create a new ProductCategory b) Create a new ProductCategoryRollup, where the parentProductCategoryId and the fromDate is specified in the form I really don't think that I got it ALL wrong, I just think that there might be a mistake in my logic that I simply cannot grasp... |
Hello,
I think you need to do these two modifications ?<invoke name="createCategoryRollupI18n" mode="sync"/> to mode async ?<auto-attributes include="pk" mode="INOUT" optional="false"/> optional true HTH Kind Regards, -- Vivek madppiper wrote: > Well, let me sum this up (I am really hoping that somebody could hint me to > my mistake in this logic). I did the following: > > 1) I added the following to the controller: > > > <request-map uri="createCategoryI18nAndRollup"> > <security https="true" auth="true"/> > <event type="service" invoke="createCategoryI18nAndRollup"/> > <response name="success" type="view" value="categories"/> > </request-map> > > > 2) I added the following to my service_groups.xml file: > > <group name="createCategoryI18nAndRollup" send-mode="all" > > <invoke name="createCategoryI18n" mode="sync" > result-to-context="true"/> > <invoke name="createCategoryRollupI18n" mode="sync"/> > </group> > > > 3) I added the following to the service xml file: > <service name="createCategoryI18n" default-entity-name="ProductCategory" > engine="entity-auto" invoke="create" auth="true"> > <description>Create a Category</description> > <permission-service service-name="exampleGenericPermission" > main-action="CREATE"/> > <auto-attributes include="pk" mode="OUT" optional="false"/> > <auto-attributes include="nonpk" mode="INOUT" optional="true"/> > <override name="productCategoryId" optional="false"/> > > > </service> > > > <service name="createCategoryRollupI18n" > default-entity-name="ProductCategoryRollup" engine="entity-auto" > invoke="create" auth="true"> > <description>Create a Category Rollup</description> > <permission-service service-name="exampleGenericPermission" > main-action="CREATE"/> > <auto-attributes include="pk" mode="INOUT" optional="false"/> > <auto-attributes include="nonpk" mode="IN" optional="true"/> > </service> > > <service name="createCategoryI18nAndRollup" engine="group" > location="createCategoryI18nAndRollup" invoke="" auth="true"> > <description>Creates a WorkEffort entity and > WorkEffortAssoc</description> > </service> > > > 4) I added the following form: > > <form name="test" target="createCategoryI18nAndRollup" type="single" > > > <!-- Create Category --> > <field name="productCategoryId" title=""> > <display/> > </field> > > <field name="productCategoryTypeId" > > <hidden value="QUICKADD_CATEGORY" /> > </field> > > <!-- Add ParentRollup --> > <field name="fromDate" > > <date-time type="timestamp" default-value="${nowTimestamp}"/> > </field> > > <field name="parentProductCategoryId" > title="${uiLabelMap.FormFieldTitle_parentCategoryId}" > tooltip="tooltip-text"> > <drop-down allow-empty="false" current-description="" > current="selected" no-current-selected-key="guys" > > <entity-options description="${categoryName}" > key-field-name="productCategoryId" > entity-name="ProductCategoryRollupAndChild"> > <entity-constraint name="parentProductCategoryId" > operator="equals" value="bproot"/> > <entity-order-by field-name="categoryName"/> > </entity-options> > </drop-down> > </field> > > > <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit > button-type="button"/></field> > </form> > > > > > With all of the above I want to: > > a) create a new ProductCategory > b) Create a new ProductCategoryRollup, where the parentProductCategoryId and > the fromDate is specified in the form > > > I really don't think that I got it ALL wrong, I just think that there might > be a mistake in my logic that I simply cannot grasp... > Thanks & Regards -- Vivek Mishra Software Developer HotWax Media Pvt. Ltd. [hidden email] www.hotwaxmedia.com Office : +917314093684 Direct : +919907292552 http://ofbiz.apache.org I am "Open For Business" smime.p7s (4K) Download Attachment |
In reply to this post by madppiper-2
Please see my amendments inline: I think thsi may help you,please let me
know: > Well, let me sum this up (I am really hoping that somebody could hint me to > my mistake in this logic). I did the following: > > 1) I added the following to the controller: > > > <request-map uri="createCategoryI18nAndRollup"> > <security https="true" auth="true"/> > <event type="service" invoke="createCategoryI18nAndRollup"/> > <response name="success" type="view" value="categories"/> > </request-map> > > > 2) I added the following to my service_groups.xml file: > > <group name="createCategoryI18nAndRollup" send-mode="all" > > <invoke name="createCategoryI18n" mode="sync" > result-to-context="true"/> > <invoke name="createCategoryRollupI18n" mode="sync"/> > </group> > <invoke name="createCategoryRollupI18n" mode="async"/> > > > 3) I added the following to the service xml file: > <service name="createCategoryI18n" default-entity-name="ProductCategory" > engine="entity-auto" invoke="create" auth="true"> > <description>Create a Category</description> > <permission-service service-name="exampleGenericPermission" > main-action="CREATE"/> > <auto-attributes include="pk" mode="OUT" optional="false"/> > <auto-attributes include="nonpk" mode="INOUT" optional="true"/> > <override name="productCategoryId" optional="false"/> > > > </service> > > > <service name="createCategoryRollupI18n" > default-entity-name="ProductCategoryRollup" engine="entity-auto" > invoke="create" auth="true"> > <description>Create a Category Rollup</description> > <permission-service service-name="exampleGenericPermission" > main-action="CREATE"/> > <auto-attributes include="pk" mode="INOUT" optional="false"/> > <auto-attributes include="nonpk" mode="IN" optional="true"/> > </service> > <auto-attributes include="pk" mode="INOUT" optional="true"/> > <service name="createCategoryI18nAndRollup" engine="group" > location="createCategoryI18nAndRollup" invoke="" auth="true"> > <description>Creates a WorkEffort entity and > WorkEffortAssoc</description> > </service> > > > 4) I added the following form: > > <form name="test" target="createCategoryI18nAndRollup" type="single" > > > <!-- Create Category --> > <field name="productCategoryId" title=""> > <display/> > </field> > > <field name="productCategoryTypeId" > > <hidden value="QUICKADD_CATEGORY" /> > </field> > > <!-- Add ParentRollup --> > <field name="fromDate" > > <date-time type="timestamp" default-value="${nowTimestamp}"/> > </field> > > <field name="parentProductCategoryId" > title="${uiLabelMap.FormFieldTitle_parentCategoryId}" > tooltip="tooltip-text"> > <drop-down allow-empty="false" current-description="" > current="selected" no-current-selected-key="guys" > > <entity-options description="${categoryName}" > key-field-name="productCategoryId" > entity-name="ProductCategoryRollupAndChild"> > <entity-constraint name="parentProductCategoryId" > operator="equals" value="bproot"/> > <entity-order-by field-name="categoryName"/> > </entity-options> > </drop-down> > </field> > > > <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit > button-type="button"/></field> > </form> > > > > > With all of the above I want to: > > a) create a new ProductCategory > b) Create a new ProductCategoryRollup, where the parentProductCategoryId and > the fromDate is specified in the form > > > I really don't think that I got it ALL wrong, I just think that there might > be a mistake in my logic that I simply cannot grasp... > Thanks Divesh |
Thanks, Divesh for such a detailed explanation :) (seriously, the above was well appreciated...)
Well, I tried all of these scenarios: a) I tried setting the invoke of createCategoryI18nRollup (service_groups.xml) to async and the the optional to true. The Result was, that the first service creates an instance just fine, but createCategoryI18nRollup did not create an instance in ProductCategoryRollup b) I set the invoke of createCategoryI18nRollup to async and the optional to false. This will create the following error: Error doing entity-auto operation for entity [ProductCategoryRollup] in service [createCategoryRollupI18n]: org.ofbiz.service.GenericServiceException: In Service [createCategoryRollupI18n] which uses the entity-auto engine with the create invoke option: could not find a valid combination of primary key settings to do a known create operation; options include: 1. a single OUT pk for primary auto-sequencing, 2. a single INOUT pk for primary auto-sequencing with optional override, 3. a 2-part pk with one part IN (existing primary pk) and one part OUT (the secdonary pk to sub-sequence, 4. all pk fields are IN for a manually specified primary key c) I set the invoke of createCategoryI18nRollup to sync and the optional setting to false and the first service creates an instance, but the second would not touch the ProductCategoryRollup as planned... d) I set the invoke of createCategoryI18nRollup to sync and the optional setting to true and again the first service creates an instance, but the second would not touch the ProductCategoryRollup as planned... So setting the pk auto-attribute to optional doesn't really seem to matter much (on the tests above I restarted the server on both changes to the service_group.xml file and cleared the cache on the changes on the service.xml file)... |
Well, could anybody please give me another hint? I hate to be an ass about this (I know that everybody on the list gets easily annoyed by posts like this) but I am in a really tight position here and stuck like... well, uhm....
Back to subject: My problem really remains: I am either left without any productCategoryId or without the input parameter given by the form. One or the other always gets lost in the process. I am quite certain that there must be another way or a workaround, I even tried using the minilang for that but without any luck whatsoever... I studied the docs carefully (disregarded the discrepency of all the different docs out there) and tried to understand anything like that in the framework, but the problems remain... ... My problem really seems like a trivial one to me: I want to create a Category with a rollup in the same form, I seriously can't believe that I am stuck like that... P.S.: I am truely sorry, I know that you guys got a whole different things on your mind and that this topic properly isn't of anybody's interest but mine... |
In reply to this post by madppiper-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 I also suggested you put log entry in the services to see what was being done for out and in can't help without had data as to what is going on madppiper sent the following on 2/5/2009 12:38 AM: > Well, thanks for the reply. :) > > The out parameters of createCategoryI18n is the productCategoryId > (createCategoryI18n itself is a simple auto create function for > ProductCategory). The difficulties I am having are from synching the both > services just right... > > as with SECAs I could have called the second service on "return", which > would have allowed the productCategoryId parameter to be passed (but would > have left the form parameters out of the equation), but as for service > groups, I am now stuck with calling the two services in the correct order... > Isn't there a way to call the second service on "return" here too? Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJiy0PrP3NbaWWqE4RAhHJAJ9g6CqYstadk9xBKQGySiCb9ZK0TwCfUCzK XnWILAX58pwHhAwrl6KFoo0= =23ew -----END PGP SIGNATURE----- |
Well, I would, but I can't use the log command in auto-create services nor in the service-groups, correct? If I am not mistaken, then that would only be possible for the services created in minilang
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 yes. I would take the auto create out of the equation and try it first. hard coded. madppiper sent the following on 2/5/2009 10:26 AM: > Well, I would, but I can't use the log command in auto-create services nor in > the service-groups, correct? If I am not mistaken, then that would only be > possible for the services created in minilang -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJizDvrP3NbaWWqE4RAvgwAJwNQE33Hi7MX9qSESkF6oZAe+WpnwCgw1CZ uSM5lRtumgpFdfnNUozlhUI= =FBv9 -----END PGP SIGNATURE----- |
In reply to this post by madppiper-2
If I understand your problem correctly, you are trying to call two
services. The results of the first service are used by the second service. If that is the case, then why not create a third service that calls the first two? A kind of "wrapper" service. The form calls the wrapper service. There are plenty of examples of that in the existing code. Search the mini-language XML files for call-service. -Adrian madppiper wrote: > Well, could anybody please give me another hint? I hate to be an ass about > this (I know that everybody on the list gets easily annoyed by posts like > this) but I am in a really tight position here and stuck like... well, > uhm.... > > Back to subject: My problem really remains: I am either left without any > productCategoryId or without the input parameter given by the form. One or > the other always gets lost in the process. I am quite certain that there > must be another way or a workaround, I even tried using the minilang for > that but without any luck whatsoever... > > I studied the docs carefully (disregarded the discrepency of all the > different docs out there) and tried to understand anything like that in the > framework, but the problems remain... > > ... > > > My problem really seems like a trivial one to me: I want to create a > Category with a rollup in the same form, I seriously can't believe that I am > stuck like that... > > > > P.S.: I am truely sorry, I know that you guys got a whole different things > on your mind and that this topic properly isn't of anybody's interest but > mine... |
Free forum by Nabble | Edit this page |