Search found 181 matches

by luis
Wed Nov 23, 2016 7:17 am
Forum: Bug - problem reporting
Topic: Custom Operation - Result row click ignored
Replies: 9
Views: 3121

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: 3121

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: 1126

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: 1226

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: 1001

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: 1104

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: 943

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: 3121

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: 1000

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: 1226

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: 959

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: 1721

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...
by luis
Wed Jun 01, 2016 9:31 am
Forum: Suggestions
Topic: Cyclos 4 PRO platform
Replies: 14
Views: 8350

Re: Cyclos 4 PRO platform

As usual, a full database backup is recommended before migrating. And,of course, Cyclos needs to be stopped during the migration. The tool should be stable. We've migrated some of our existing instances to file storage. Also, some clients have migrated to S3. Depending on the amount of existing imag...
by luis
Wed Jun 01, 2016 8:16 am
Forum: Suggestions
Topic: Cyclos 4 PRO platform
Replies: 14
Views: 8350

Re: Cyclos 4 PRO platform

Hi. Unfortunately we have no news in neither questions: we only use Tomcat (8) in production, and in our projects we're using a replicated PostgreSQL. Even some large clients we have are satisfied with just replication, so I think it would be needed an stellar number of concurrent users to start hav...
by luis
Tue Mar 29, 2016 11:14 am
Forum: Bug - problem reporting
Topic: [Cyclos 4.5.3] Account balances not in sync after tx import
Replies: 3
Views: 1458

Re: [Cyclos 4.5.3] Account balances not in sync after tx imp

simonjwoolf wrote:Thanks, this works well. You just made one small error in the second sql statement. It should be:

Code: Select all

update accounts set negative_since = null where balance_diff(id) >= 0
Sorry, wrong copy-and-paste. I'll edit the above reply, so it stays there for future reference.
Thank you.