CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP.NET - InMotion Framework

 Modify MTListBox dynamically

Print topic Send  topic

Author Message
AndyGB4

Posts: 122
Posted: 06/07/2013, 6:58 PM

Hi everyone,

I have ListBox in one of my records (a search record).
I need to know how to do at least one of these 2 things:

1) Change the SQL in a Before Build Select (or Execute).
I found this in the CCS documentation, but it gives me an error.
//Tasks_BeforeExecuteSelect ((TableCommand)Select).SqlQuery = new StringBuilder("select top 3 * from ages");
It doesn't like the "TableCommand" part... But the documentation doesn't say if I maybe need to add some sort of "Using" tag at the top of the page.

2) Change only the "DataTextField".
I've tried to use the DataTextField property of MTListBox, but nothing happens. I must be using it wrong.

Has anyone ever tried something like this? I've done it in other languages, but I can't get it to work with C#... Thanks.
View profile  Send private message
cvboucher

Posts: 191
Posted: 06/07/2013, 8:51 PM

This link talks about modifying the sql for a grid but I think it will work for a listbox as well.

http://code.google.com/p/inmotion-framework/wiki/ModifySQL

This link talks about modifying the list of values of a listbox.

http://code.google.com/p/inmotion-framework/wiki/ModifyListBoxListOfValues

For #2, try changing the DataTextField property in the BeforeExecuteSelect event.

Craig
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.