Search found 184 matches

by luis
Mon Mar 13, 2017 3:47 pm
Forum: Scripting & Webservices issues
Topic: Failed to access User record types when fields are shared
Replies: 10
Views: 1789

Re: Failed to access User record types when fields are share

It is strange, because the stack trace indicates that a .value property was being accessed of the UserCustomFieldValue class, and nowhere in the script that was called (at least the visible part, because you didn't attach the whole script). Another question: you use wrapped[odometer], wrapped[member...
by luis
Mon Mar 13, 2017 11:14 am
Forum: Scripting & Webservices issues
Topic: Failed to access User record types when fields are shared
Replies: 10
Views: 1789

Re: Failed to access User record types when fields are share

Could you, please, provide more information of what fails? Something like a stack trace or a description of the result vs expected state. The code seems ok. I've tested a similar case here with shared fields and it works. In Groovy it is equivalent to use either: wrapped.membergroup or wrapped['memb...
by luis
Mon Jan 30, 2017 7:19 am
Forum: Cyclos 4 Communities
Topic: Activate a Channel
Replies: 3
Views: 938

Re: Activate a Channel

To fix it, run the following on the database directly: First find out the identifier of the configuration applied for your admin: select id, name from configurations; Then enable the channel: update channel_configurations set enabled = true where configuration_id = <id of the configuration> and chan...
by luis
Wed Nov 23, 2016 7:17 am
Forum: Bug - problem reporting
Topic: Custom Operation - Result row click ignored
Replies: 9
Views: 3434

Re: Custom Operation - Result row click ignored

Now the next - and hopefully last - question would be, how do I get the parameters that I have passed from the previous script? There is no way to do that out-of-the-box. What you could do is to pass the parameters again. For example, custom operation A is the first list, and passes parameters a1 a...
by luis
Tue Nov 22, 2016 8:22 pm
Forum: Bug - problem reporting
Topic: Custom Operation - Result row click ignored
Replies: 9
Views: 3434

Re: Custom Operation - Result row click ignored

Is there a way to create a User object? Obviously I can do User u = new org.cyclos.entities.users.User() but that will not represent the currently logged in user. If you just need the logged user (the operation is not executed by an admin / broker in another user's profile) you can get the logged u...
by luis
Thu Oct 27, 2016 1:45 pm
Forum: Scripting & Webservices issues
Topic: Documentation how to use parameters in PHP API
Replies: 1
Views: 1283

Re: Documentation how to use parameters in PHP API

As of Cyclos 4.7, is is recommended to use the REST API instead of the regular API when the functionality is covered. It is more stable and fully documented. You can browse the api documentation on your own cyclos installation via <installation_root>/api. We don't provide a client library for PHP in...
by luis
Wed Oct 19, 2016 12:57 pm
Forum: Bug - problem reporting
Topic: [Fix in v4.7] pageContext is always null
Replies: 4
Views: 1423

Re: pageContext is always null

Sorry for the delay.
The fix for the pageContext always null will be included in 4.7, which should be out shortly.
by luis
Tue Oct 18, 2016 1:57 pm
Forum: Scripting & Webservices issues
Topic: Propagate custom error messages to Cyclos
Replies: 1
Views: 1158

Re: Propagate custom error messages to Cyclos

So, again, my question is, is there some kind of dedicated exception type that scripts can use to propagate error messages to the Cyclos GUI? Or a way to override the default error message? You can throw a ValidationException for that. For example: throw new org.cyclos.model.ValidationException("Th...
by luis
Tue Oct 04, 2016 10:52 am
Forum: Bug - problem reporting
Topic: [Fix v4.7] Session timeout in Custom Operation gives error
Replies: 2
Views: 1246

Re: Session timeout in Custom Operation gives unexpected err

Thanks for the report. Will be fixed in 4.7.
by luis
Tue Oct 04, 2016 10:49 am
Forum: Bug - problem reporting
Topic: NullPointerException in AccountHistoryQuery without account
Replies: 2
Views: 1052

Re: NullPointerException in AccountHistoryQuery without acco

Will be added to documentation.
Yes, the account is required in the searchAccountHistory method.
If you need to search transfers from multiple accounts, use searchAccountHistoriesOverview instead.
by luis
Tue Oct 04, 2016 10:43 am
Forum: Bug - problem reporting
Topic: Custom Operation - Result row click ignored
Replies: 9
Views: 3434

Re: Custom Operation - Result row click ignored

It seems a bug that without passing any parameters the row click doesn't work. However, why would someone want to open a fixed URL when clicking any row, without any parameter? The parameters are a comma-separated list of properties in the row objects that are passed to the URL. Anyway, a workaround...
by luis
Tue Oct 04, 2016 10:29 am
Forum: Bug - problem reporting
Topic: Custom Operation - Properties in row objects ignored
Replies: 2
Views: 1130

Re: Custom Operation - Properties in row objects ignored

There is a context switch between Groovy and Java after the script is executed.
The supported "styles" for properties are either an object with getter methods or instances of java.util.Map.
So, neither public fields nor get(name) nor propertyMissing are taken into account in the Java side.
by luis
Tue Oct 04, 2016 10:23 am
Forum: Bug - problem reporting
Topic: [Fix in v4.7] pageContext is always null
Replies: 4
Views: 1423

Re: pageContext is always null

The pageContext is only set for custom operations whose result type is 'Result page'.
Is that the case?
by luis
Tue Oct 04, 2016 10:17 am
Forum: Bug - problem reporting
Topic: [4.8 API] Unable to filter users with profilefield
Replies: 1
Views: 1082

Re: [4.8 API] Unable to filter users with profilefield

For the profile fields to be used as filter, they must be allowed as such in the product of the authenticated user (or in the group permissions in case of admins). Make sure the businesscategory is really the internal name of the custom field, and that it is set in the 'User filter' column in the 'P...
by luis
Fri Aug 26, 2016 2:29 pm
Forum: Scripting & Webservices issues
Topic: Performing user-to-user payments in Cyclos 4.4
Replies: 6
Views: 1990

Re: Performing user-to-user payments in Cyclos 4.4

In a quick look I couldn't find anything obviously wrong in your script. The first thing to check is whether login name is allowed as an user identification method to perform payments, in the channel configuration, and if the parameters are . Also, something that is not clear to me is whether this r...