Duplicated dataset for custom valuelists

Hi all.

I have implemented a function for a custom value list. Everything seems correct but with one problem. All values are duplicated. Here’s the screenshot using sample_use_navigation and the sample provided by servoy for custom value lists (using example_data)

I also attach the sample with the example. Here it is → http://dl.dropbox.com/u/6251691/screenshots_servoy/sampleuse_navigation.servoy

So, what are we doing wrong?

Cheers!

Concretely, the used code for constructing that vlst is:

function getDataSetForValueList(displayValue, realValue, record, valueListName) {
	
	application.output("come into function");
	
	if (displayValue == null && realValue == null) {
		// return the complete list
		return databaseManager.getDataSetByQuery("example_data", "select firstname from employees", null, 100);
	} else if (displayValue != null) {
		// TYPE_AHEAD filter call, return a filtered list
		var args = [displayValue + "%", displayValue + "%"]
		return databaseManager.getDataSetByQuery("example_data", "select firstname from employees where firstname like ? or lastname like ?", args, 100);
	} else if (realValue != null) {
		// real object not found in the current list, return 1 row with display,realvalue that will be added to the current list
		// dont return a complete list in this mode because that will be added to the list that is already there
		var args = [realValue];
		return databaseManager.getDataSetByQuery("example_data", "select firstname from employees where employeeid = ?", args, 1);
	}
	return null;
}

This looks like a bug to me, please create a case in the support system and attach this sample solution.

Hi Joas.

Ok, As i’ll open the bug, i only expect an answer soon by your part. It’s important for us create our own value lists, we are in a hurry and this is a standard feature offered by Servoy that doesn’t work!! nor related to framework, nor related to anything strange… yet standard.

It’s quite surprising for me that something that what you are offering inside your standard product (including sample functions also!), doesn’t work as expected.

The opened bug is 389871, and the url that the system has generated for me is http://www.servoy.com/generic.jsp?taxonomy_id=1096

Thanks and bye!

I can read this in bug resolution.

→ Fixed, will be included in Servoy 5.2.9

When it will be released this version??

Can i take a workaround for the problem in the meanwhile??

Thanks

I looked your case up in our system and I saw that it is fixed in Servoy 5.2.9. You should have received an email about that a couple of days ago.
This is the normal procedure, what else do you expect?
Your issue was an issue in Servoy itself, not in the framework, so you have to wait until 5.2.9 is released.

The support you receive on the forum is not paid support. If you have a support contract with Servoy, you can just mail/call your contact person from Servoy.

Joas:
I looked your case up in our system and I saw that it is fixed in Servoy 5.2.9. You should have received an email about that a couple of days ago.
This is the normal procedure, what else do you expect?

I expected at least an answer in the forum by your part, i think it’s not so difficult… If you read all my posts, you will see that always i try to document and test all my question in an obsesive way, with the only intention of accelerating your work (and as consequence, you can accelerate mine, that is the objective). Absurdly, i was expecting the same behaviour by your part…

Joas:
The support you receive on the forum is not paid support. If you have a support contract with Servoy, you can just mail/call your contact person from Servoy.

Well, that was my way of doing things, until past month, i always wrote directly to support in Servoy (Ron and Sanneke could confirm that), until the day that Sanneke tolds me that i will must use the forum always for recieving support. If you don’t believe me, please, ask them and confirm what i’m telling you… In fact, this forum was created for the clients that use the framework.

So, from that day, forum is my “paid support” system. For me it’s not good to write using forum for these problems, i personally prefer mail and calls for doing things, but, i repeat, i only follow your rules.

Joas:
Your issue was an issue in Servoy itself, not in the framework, so you have to wait until 5.2.9 is released.

Well Joas, i haven’t probed if the problem belongs to Servoy itself or belongs to Framework, as you can imagine (if not, i tell you) my work is NOT to discover, test and reports Servoy bugs, but yes use Servoy as a tool to make my real work.

So, as the problem is a Servoy and not framework feature, i must wait… Ok. I don’t like, but i suppose that i can do nothing for solving my problem until the next release.

So, please, can you tell me WHEN will this version (5.2.9) be published for solving my problem?

Finally, i don’t want a war, i don’t want discuss, what i only want is having things working, exactly equals as you in your work. It’s no so pretentious, i think…

Greetings from Spain

txeo:
Well, that was my way of doing things, until past month, i always wrote directly to support in Servoy (Ron and Sanneke could confirm that), until the day that Sanneke tolds me that i will must use the forum always for recieving support. If you don’t believe me, please, ask them and confirm what i’m telling you… In fact, this forum was created for the clients that use the framework.

So, from that day, forum is my “paid support” system. For me it’s not good to write using forum for these problems, i personally prefer mail and calls for doing things, but, i repeat, i only follow your rules.

I think there has been a misunderstanding here. This forum doesn’t replace the support you had before, it is a place where you can ask questions and share experiences with other framework users. I talked about this with Sanneke, and she didn’t tell you otherwise.
So you can just keep mailing and calling like you did before the framework forum existed, but in addition to that you can use this forum :).

txeo:
So, please, can you tell me WHEN will this version (5.2.9) be published for solving my problem?

5.2.9 is expected to be released next week.

Ok so, thanks Sanneke and Joas for the explanation, and let’s expect not to use nor formum nor mails in future. That it will be a good signal!! ;)

We will wait for the next version then.

Greetings from Spain.

Bye!