Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Maintain(HTMLSTACK)
 Login/Join
 
<Vijaya_settu>
posted
I am using the below code to get the output in HTMLSTACK. Example: In the maintain form, I‘ve three Editboxes1.Studentid 2.Lastname 3.Firstname. If I enter Studentid and it would automatically display FirstName and Last Name from HTMLSTACK. I’ve done something similar like populate from stack. But not from HTMLSTACK.I tried the below code, but it n’t display the name. I appreciate any one help me on this issue.

_*__________FEX CODE_________________________________________________________
-SET &Sid = &1;
TABLE FILE STUDENT
SUM
SID AS 'hankid'
LAST_NAME AS 'lname'
FIRST_NAME AS 'fname'
BY SID NOPRINT
WHERE SID EQ '&Sid';
ON TABLE PCHOLD FORMAT HTML
END
-*____________MAINTAIN CODEbelow___________________________________________________

MAINTAIN FILE student

$$Declarations
Declare cid / A7;
DECLARE last / A57;



Case Top
Compute hankidoutstk.HTML / A250;


Compute hankidoutstk.LAST_NAME / A57;

Winform Show Form1;
EndCase

Case hankoutfn
Stack clear hankidoutstk;
Exec CurrentStuEnroll PATH "searchstudent" from cid INTO hankidoutstk;
Compute cid='';
EndCase


Case Displaylastname
Compute last=hankidoutstk.LAST_NAME;
EndCase

END
 
Report This Post
Master
posted Hide Post
When using the ON TABLE PCHOLD FORMAT HTML statement with your Table, Maintain receives a fully formatted report into stk.HTML/A200. The ONLY thing you can then do with that stack is display it in an HTML Object.

What you want to do is retrieve the stack as data. So, you should have:

-SET &Sid = &1;
TABLE FILE STUDENT
SUM
SID AS 'hankid'
LAST_NAME AS 'lname'
FIRST_NAME AS 'fname'
BY SID NOPRINT
WHERE SID EQ '&Sid';
ON TABLE PCHOLD
END

Do not use a format on the ON TABLE PCHOLD statement. Then in your Maintain you should have

Infer SID into hankidoutstk

and not:
Compute hankidoutstk.HTML / A250;
Compute hankidoutstk.LAST_NAME / A57;

Now, after your EXEC statement, you can use any of the fields in the stack. As a rule, NEVER place a format on a database field. Infer database fields into a stack and compute non-database fields into a stack.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
<Vijaya_settu>
posted
Thanks Marks, it works perfectly.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders