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 -> General/Other

 [SOLVED] Get Description Text from a list box when value = N

Print topic Send  topic

Author Message
CodeChargeMVP

Posts: 473
Posted: 05/18/2010, 4:08 AM

Hello,

I posted this thread on php forum,but i think it´d fix better on general.

http://forums.codecharge.com/posts.php?post_id=111130

¿Does custom insert the solution to the problem?

Maybe i´m using custom insert in the wrong way cause fields are still inserted with null value.

Thank you very much in advance.
_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 05/18/2010, 7:32 PM

CodeChargeMVP,
See if this documentation is what you are looking for. Look for Using Stored Procedures and read the contents: http://docs.codecharge.com/studio40/html/index.html?htt...DataSource.html
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 05/20/2010, 3:53 AM

Quote mamboBROWN:
CodeChargeMVP,
See if this documentation is what you are looking for. Look for Using Stored Procedures and read the contents: http://docs.codecharge.com/studio40/html/index.html?htt...DataSource.html


Hello mamboBrown,

Thank you for your suggestion.

The issue has change, the thing was on the selected bound column, now i wanna get the text from
the lixt box,i mean:

I´ve got a list box which bound column is an integer value and the tex field is a description so the option looks like:

<option value ="1" > this is the text i wanna get </option>

when doing window.document.getElementById("NameOfTheObject").value i get the bound column.

Will be easy think than doing:

window.document.getElementById("Nameoftheobject").text i´d get the text column but it doesn´t work it says undefined


so the questions is ¿how do i get the text inside option value = "1"?

_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 05/20/2010, 4:52 AM

This was the line i was looking for:

window.document.getElementById("agentes_unidadess_AgeDesc").options[window.document.getElementById("agentes_unidadess_AgeDesc").value].text;

:-D
_________________
Best Regards
Entrepeneur | NT Consultant
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.

MS Access to Web

Convert MS Access to Web.
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.