Hello everyone, Is it possible to insert data from texfield to a db not showing column value in textfield? I guess doCommit works if only i use this style: <textfield name="tname" datasource="query1" column="NAME"/> but i want user to write info in texfields ( of course it must be empty ) and save these data into db.

Thank you in advance

asked 13 Mar '14, 18:37

Smith's gravatar image

Smith
116
accept rate: 0%


Hi Smith,

To achieve your request, you can use a textField without datasource/column binding:

<textfield name="tname"/>

You can retrieve the value entered into this textField using api_component.getValeTX/NR/DT.. APIs:

api_component.getValueTX('panelName.tname');

Once you retrieve the component's value, you can save it into db either through your custom DML statments or Formspider datasources.

Hope this helps,
Ibrahim

link

answered 15 Mar '14, 17:03

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

Hi Ibrahim, Thank you. My mistake was that I did not use commit in procedure.

(16 Mar '14, 17:56) Smith
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×64
×12
×9

Asked: 13 Mar '14, 18:37

Seen: 1,012 times

Last updated: 16 Mar '14, 17:56


© Copyright Gerger 2017