Focal Point
[CLOSED]Html page and inserting into table

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7487049976

December 23, 2015, 01:47 PM
Bharathi
[CLOSED]Html page and inserting into table
I need some suggestions on my requirements.
Looking for advice on how to develop this
I am very new to WF 8.
1.Create html page with 6 controls, user selects data from drop downs and keys in some data.
2. Check if the entered combination of rows exists in table.
3.If yes, throw error.
4. If not, insert the data.

Please let me know how best and fast I can do this.

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8.1.05
Windows, All Outputs
December 23, 2015, 01:59 PM
MartinY
Search : "Maintain" from IBI doc


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
December 24, 2015, 12:36 AM
Bharathi
I need it without Maintain..using html and fex


WebFOCUS 8.1.05
Windows, All Outputs
December 24, 2015, 03:59 AM
Danny-SRL
Bharati,
quote:
1.Create html page with 6 controls, user selects data from drop downs and keys in some data.
2. Check if the entered combination of rows exists in table.
3.If yes, throw error.
4. If not, insert the data.

Could you be a bit more specific about your 6 controls and the "combination of rows"?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

December 24, 2015, 04:41 AM
Tony A
quote:
1. Create html page with 6 controls, user selects data from drop downs and keys in some data.
2. Check if the entered combination of rows exists in table.
3. If yes, throw error.
4. If not, insert the data.

1. Straight forward in HTML composer
2. Build your parameter list to use within a simple Ajax call - as you quote WF8 this is easier owing to the fact that jQuery can be used simply. There are many posts on Ajax - especially with jQuery.
3. Capture the result from the Ajax call and branch accordingly.
4. Another Ajax call? or the same one with a key word that will commit the data instead of just checking it?

Good luck


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
December 24, 2015, 05:30 AM
Bharathi
Thank you for responses.

I have to let user to insert some data into a database table.

For that,I have to give an interface which is html with 4 drop downs and 2 textboxes where user will select values from dropdowns and enters two values in text boxes.

I have to check whether the entered data combination(of 6 values - 4 dropdowns and 2 txtbox) already exists or not.

If exists, throw error, if not insert data into table.

Let me know if I am clear.


WebFOCUS 8.1.05
Windows, All Outputs
December 28, 2015, 07:38 PM
StuBouyer
If you can't/won't use MAINTAIN then you are probably stuck with either AJAX/JS/JSP calls outside of WebFOCUS or Dialogue Manager to build SQL pass thru within a WebFOCUS FEX.

For your error check you can run a quick TABLE FILE and if it returns &LINES GT 0 then you have branch to error else
use INSERT in SQL pass thru.

Cheers

Stu


WebFOCUS 8.2.03 (8.2.06 in testing)
December 30, 2015, 08:27 AM
Bharathi
Thank you !
As its only one row insertion at a time, I am using a html and fex to validate and insert into table.


WebFOCUS 8.1.05
Windows, All Outputs
December 30, 2015, 08:56 AM
Ricardo Augusto
Bharathi,

Read about MATCH and MODIFY too.


WebFOCUS 8.1.05 / APP Studio