Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 09 16:25
    eromano milestoned #5057
  • Sep 09 14:43
    eromano milestoned #5061
  • Sep 09 11:36
    dhrn closed #5019
  • Sep 08 08:17
    pionnegru milestoned #5063
  • Sep 06 14:16
    aitseitz edited #5062
  • Sep 06 14:11
    aitseitz opened #5062
  • Sep 05 12:27
    dhrn milestoned #5058
  • Sep 05 06:55
    dhrn milestoned #5054
  • Sep 04 19:14
    eromano milestoned #5044
  • Sep 04 16:48
    eromano milestoned #5055
  • Sep 04 16:36
    DenysVuika labeled #5050
  • Sep 04 13:57
    eromano milestoned #5030
  • Sep 04 07:36
    pionnegru milestoned #5051
  • Sep 04 06:31
    loictrichaud opened #5050
  • Sep 03 14:11
    eromano milestoned #5046
  • Sep 03 10:10
    eromano milestoned #4996
  • Sep 03 07:56
    pionnegru milestoned #5045
  • Sep 02 06:48
    pionnegru milestoned #5040
  • Sep 01 09:03
    eromano milestoned #415
  • Aug 31 03:24
    silverskyvicto edited #5039
muhmadtabrez
@muhmadtabrez
Hi All, I am trying to use 3.5 version of ADF i am getting the following error
node-sass@4.9.2 postinstall: `node scripts/build.js
my angular version is 7.2.15 and node version is 12.13.0
i guess i am unable to install node-sass version 4.9.2 specified in package.json
Denys Vuika
@DenysVuika
you need to install the latest version of node-sass if using node 12
muhmadtabrez
@muhmadtabrez
npm install node-sass@latest this is the command?
Denys Vuika
@DenysVuika
Yes
muhmadtabrez
@muhmadtabrez
thanks @DenysVuika
muhmadtabrez
@muhmadtabrez

Hello @DenysVuika

I am have designed a custom stencil in alfresco APS 1.7 with name 'customstencil1' and when i am trying to store the value of stencil(this.field.value={"id":1,"value":"test"} using my custom stencil component it is stroing the value of stencil variables as string.
Since i am trying to store value of the field as json how can i achieve this.As i have seen with public api /enterprise/process-instances/{processInstanceId}/variables if i pass the body as
[
{
"name": "customstencil1",
"value": {"id":1,"value":"test"}
}
]
the result will be a serializable which is stroed as object(json)

Denys Vuika
@DenysVuika
@muhmadtabrez I think you can easily add serialize/deserialize calls to your stencils. like calling JSON.parse during ngOnInit of your stencil (and storing/binding result in a local variable), and JSON.stringify to store the object back to the field.value. The raw json support is coming with the cloud components if I remember correctly, not sure about 1.7, but you still can achieve that with the conversion
muhmadtabrez
@muhmadtabrez
@DenysVuika thanks for your inputs but the behaviour is different if i call saveTaskForm method of form.service.ts and then try to get the form values and use completeTaskForm form.service.ts it still stores string value
muhmadtabrez
@muhmadtabrez
it means to say the if i want first save the form and load the same data and then submit it is unable to strore the stencil value as json object
or give more details. 'couldn't connect' its not helpful
Denys Vuika
@DenysVuika
@mhmmderen3 this forum is related to ADF components and Angular. Not sure how your question relates to that to be honest
Muhammed Eren Demir
@mhmmderen3
@DenysVuika which gitter room do I have to ask
loictrichaud
@loictrichaud

Hello,
Since I migrated to ADF 3.5.0, I get this warning in my console :

WARNING in ./node_modules/minimatch/minimatch.js
Module not found: Error: Can't resolve 'path' in 'D:\workspace\adf\app_adf\node_modules\minimatch'

Do you know how to fix this? Thank you for your help :/

Denys Vuika
@DenysVuika
@mhmmderen3 you can probably check here: https://hub.alfresco.com
@loictrichaud can you try running npm i -D minimatch to see how it goes?
loictrichaud
@loictrichaud
@DenysVuika OK thanks. I tried but still the same problem :|
Denys Vuika
@DenysVuika
But the app runs for you? We have this warning in a few apps right now and it seems to be still working. Meanwhile investigating the fix for the upcoming release
loictrichaud
@loictrichaud
Yes my app works ! It's just a warning but I thought it was strange :/
jigirshah
@jigirshah

Hi, I want to have a Context (Right-click) Menu Actions for <adf-datatable> component of ng2 project. So, I have added following things to datatable component in demo-shell.
In html,
[contextMenu] = true
(showRowContextMenu)="onShowRowContextMenu($event)"
In ts,
onShowRowContextMenu(event: DataCellEvent) {
const myAction = {
title: 'context'
};
event.value.actions = [
myAction
];
}

However, I am not able to see this context menu action on right-click on datatable component. What am I doing wrong? How to achieve this?

vpasudo
@vpasudo
the event for right click in angular is (contextmenu)="yourFunction()" dunno if adf datatable override that tho
jigirshah
@jigirshah
Context menu is not working for adf-datatable.. few of my team members have tried as well..
@DenysVuika is it bug or known issue?
Cilibiu Bogdan
@pionnegru
@jigirshah form what I see from your example, your 'myAction' is not complete since it should be a ContentActionModel. i think you need at least visible: true property of the model. Also , your 'event.value.actions' should be a list like [ { model: myAction } ]
can you try
onShowRowContextMenu(event: DataCellEvent) {
    const myAction = {
        title: 'context',
        visible: true
    };
    event.value.actions = [
        {model: myAction}
    ];
}
jigirshah
@jigirshah
ok.. and how can i put execution function on click of this action?
onExecuteRowAction method?
Cilibiu Bogdan
@pionnegru
the ContentActionModel looks like
    icon: string;
    title: string;
    handler: ContentActionHandler;
    execute: Function;
    target: string;
    permission: string;
    disableWithNoPermission: boolean = false;
    disabled: boolean | Function = false;
    visible: boolean | Function = true;
this means myAction should have execute: () => {}
jigirshah
@jigirshah
ok.. I am able to see context menu action .. however, i need to have execute function with selected row's value
Cilibiu Bogdan
@pionnegru
event: DataCellEvent has the row value
you can check what . document-list does
Denys Vuika
@DenysVuika
Also, please check the documentation on DataTable and DocumentList, there should be examples on actions and clicks from what I remember
swall-developer
@swall-developer
Hello. Is it possible to retrieve an additonal property (cm:content, I need the content-url from there) through the alfresco node rest api. Or have I to use the search api for that purpose?
Cilibiu Bogdan
@pionnegru
maybe include 'properties' as options?
swall-developer
@swall-developer
@pionnegru Thanks for your suggestion, but it doesn't seem to be possible to include properties to getNode request. In the documentation there are only following opional parameters listed: allowableOperations,association,isLink,isFavorite,isLocked,path,permissions. But I don't understand why it should be possible through the search api but not through the node api.
Ajai
@BajarangBhai_gitlab
Hi All
I'm using adf-diagram component in my application and it consisits of collapsable sub process.
when it is rendered the diagram and sequence flows are misplaced and broken
I'm facing same issue in activiti-app also
image.png
can anyone help me with this?
DSA
@DhineshSA

Hi all, I'm hitting on
Error: Can't resolve 'path' in '/home/local/ZOHOCORP/dhinesh-6145/TestAlfresco/node_modules/minimatch'. (Seems to ignore the warning error on looking at the above messages from @DenysVuika)

But, localhost:4200 throws invalid login credentials for both test account (admin/admin) and for my alfresco account credentials.

Can someone help me with this. !

MariusGrunenberg
@MariusGrunenberg
Hi is there some piece of documentation or info on how to implement a change password feature with adf? I find the documentation of the Rest-API a bit confusing. It appears I get a mail with a Link to Share, which I don't want.
sherrymax
@sherrymax
I am trrying to build an extension for an ADF app. Is there an already created extension in GitHub that I can have a look at and follow ?