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.
(FOC1400) SQLCODE IS 201 (HEX: 000000C9) XOPEN: 42000 : Microsoft SQL Native Client: [42000] Procedure or function 'PS_WF_Custom : erDropDownDates' expects parameter '@id , which was not supp : lied. L (FOC1406) SQL OPEN CURSOR ERROR.
i think the issue with the parameters(@id,@name...).
but i don't know how to supply the @id to fex file.
i try to -DEFAULT @id=2; -DEFAULT @name='test'; ...........
but it's not work...
i read the document , i think i didn't find the correct way or ensample to do.
Thanks, YangThis message has been edited. Last edited by: Yangyang,
That may not be necessary. I rarely (if ever) use -DEFAULTS. They are synonyms anyway and for whatever reason -DEFAULT just looks "neater" to me
From documentation:
quote:
-DEFAULT commands set default values for local or global variables. Supplying default values to variables in a stored procedure helps ensure that it runs correctly.
As I don't use any particular tool other than Dev. Studio's text editor and sometimes Unix's vi to directly edit .fex files the use of -DEFAULT has proven to be quite effective. As far as HTML launch pages are concerned, we still use and maintain our own old ASP-based reporting application with calls to server-based .fex procedures made through the WFServlet so we don't really use the HTML Layout painter or any of the other tools that came packed with Dev.Studio.
Here's me hoping that one day we'll upgrade our WF 5.3.4 environment to 7.6.x (or 8.x? ) so we can take advantage of the new functionality and tools but 'til then ... text editor it is.
create report with synonym.mas(need parameter @id,@name....)
my step: 1.create synonym ,Restrict object type to :Stored Procedures ,select a stored Procedures and input @id,@name... subimt create synonym ,SP_GET_USER.mas it's ok.
2. in the test.fex , i create a report , select SP_GET_USER.mas and dragging ANSWERSET1.USEER_KEY and ANSWERSET1.USEER_NAME to report , and run it : i got the error: (FOC1400) SQLCODE IS 201 (HEX: 000000C9) XOPEN: 42000 : Microsoft SQL Native Client: [42000] Procedure or function SP_GET_USER : erDropDownDates' expects parameter '@id , which was not supp : lied. L (FOC1406) SQL OPEN CURSOR ERROR.
how can i pass the parameters to report or synonym ?
Thanks, James YangThis message has been edited. Last edited by: Yangyang,
TABLE FILE SP_GET_USER PRINT whatever you need WHERE (SP_GET_USER.INPUT.@ID EQ 1 ) AND (SP_GET_USER.INPUT.@NAME EQ 'TEST') AND.... END
or...
TABLE FILE SP_GET_USER PRINT whatever you need WHERE (@ID EQ 1 ) AND (@NAME EQ 'TEST') AND.... END
i get the error :
0 ERROR AT OR NEAR LINE 30 IN PROCEDURE test1 FOCEXEC * (FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED: SP_GET_USER.INPUT.@id BYPASSING TO END OF COMMAND (FOC009) INCOMPLETE REQUEST STATEMENT