谁能提供aikau表单示例进行数据加载? [英] Could anyone provide aikau form example with data loading?

查看:138
本文介绍了谁能提供aikau表单示例进行数据加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Aikau 示例包含一个 var按钮,该按钮配置为显示带有表单控件的弹出窗口。据我所知,每个aikau表单都有一个值,可以用来预填充控件,但是如何从URL加载值呢?

Aikau example contains a var button which configured to show popup with form control. As I know every aikau form has a value, which can be used to prepopulate controls, but how to load value from URL?

例如有人按下按钮,它从URL加载某种方式的数据,将它们存储到Form值中,然后在表单上填充一个字段。

E.g. someone push on the button, it load "somehow" data from URL, stores them into Form value and then populate one field on the form.

关键的问题是什么参数用作URL(是否 publishPayload.url ?)以及为此设置的主题和位置?

The key problem is what parameters to use as URL (is it publishPayload.url?) and what and where a topic should be set for this?

我已经尝试了示例修改,并尝试添加 publishPayload.url setValueTopic:ALF_CREATE_FORM_DIALOG_REQUEST ,但看不到任何带有URL的HTTP请求。如果URL错误,我可以看到带有500或404代码的请求,但即使这些请求也没有发送。

I have tried already example modification and try to add publishPayload.url and setValueTopic: ALF_CREATE_FORM_DIALOG_REQUEST, but do not see any HTTP requests with URL. If URL was wrong I can see requests with 500 or 404 codes, but even these requests are not send.

有人可以提供示例如何执行此操作吗?

Could somebody provide an example how to do this?

注意

它可以只是按钮和带有值的单元格的一部分。数据或url无关紧要,URL可以是带有title / name属性的某些NodeRef的简单链接。

It can be just a piece of code for button and cell with value. What is the data or url it does not matter, URL can be a simple link to some NodeRef with title/name property.

推荐答案

与您上一个问题一样,我建议您可以在GitHub上阅读Aikau教程(请参阅 https:// github.com/Alfresco/Aikau/blob/develop/tutorial/chapters/About.md )我认为您会发现,与官方文档相比,它在Aikau上有很多有用的信息-这些例子是采用的摘自之前的旧博客帖子,Aikau成为GitHub中的独立项目。您要查看的示例已经过时了,我将尝试将其从官方文档中删除。

As with your last question I would suggest that you work through the Aikau tutorial on GitHub (see https://github.com/Alfresco/Aikau/blob/develop/tutorial/chapters/About.md) I think that you'll find that it has a lot more useful information on Aikau than the official documentation - those examples are taken from old blog posts that were written before Aikau became a standalone project in GitHub. The examples you're looking at a very much out of date and I will try to get them removed from the official documentation.

Aikau使用发布/订阅模型。将为按钮配置publishTopic和publishPayload。单击后,有效负载将在该主题上发布。可以提供服务以订阅已发布的主题并提供数据。

Aikau works on a publication/subscription model. A button will be configured with a publishTopic and a publishPayload. When clicked the payload will be published on that topic. Services can be provided to subscribe to published topics and provide data.

在先前参考的教程和我的博客文章在Alfresco社区平台上

There are lots of examples of this in both the tutorial previously referenced and in my blog posts on the Alfresco Community platform

这篇关于谁能提供aikau表单示例进行数据加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆