You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/05/23 07:09:00 UTC
[jira] [Commented] (OFBIZ-12262) Execute a callback with parameters from the request
[ https://issues.apache.org/jira/browse/OFBIZ-12262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848843#comment-17848843 ]
ASF subversion and git services commented on OFBIZ-12262:
---------------------------------------------------------
Commit e4bb0757a43e1194d82354b218ff2816741a420a in ofbiz-framework's branch refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=e4bb0757a4 ]
Fixed: createTimesheetForThisWeek as admin fails (OFBIZ-13098)
At least the below block of controller request-maps was removed by OFBIZ-12262
<request-map uri="createTimesheetForThisWeek">
<security https="true" auth="true"/>
<event type="service" invoke="createTimesheetForThisWeek"/>
<response name="success" type="view" value="MyTimesheets"/>
<response name="error" type="view" value="MyTimesheets"/>
</request-map>
<request-map uri="createQuickTimeEntry">
<security https="true" auth="true"/>
<event type="service" invoke="createTimeEntry"/>
<response name="success" type="view" value="MyTimesheets"/>
<response name="error" type="view" value="MyTimesheets"/>
</request-map>
Maybe more there are a log of changes in the controller
> Execute a callback with parameters from the request
> ---------------------------------------------------
>
> Key: OFBIZ-12262
> URL: https://issues.apache.org/jira/browse/OFBIZ-12262
> Project: OFBiz
> Issue Type: Sub-task
> Components: framework/widget
> Affects Versions: Trunk
> Reporter: Nicolas Malin
> Assignee: Gil Portenseigne
> Priority: Minor
> Attachments: 0001-Execute-a-callback-with-parameters-from-the-request-.patch
>
>
> With the new element set-callback (OFBIZ-11812) we have the possibility to call a request with event and wait the success/error before continue and update an area.
> If the event generate a new value (createProduct, createPerson, ...) where we need it for update the area, we can't generate the call.
> A possible idea would be add a new parameter type when we define a callback to indicate that we will wait the event return to resolve the value. Like
> {code:java}
> <set-callback area-target="window">
> <parameter param-name="productId" from-request="productId"/>
> </set-callback>{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)