(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,
James not sure which tool you are using but change -DEFAULT to -DEFAULTS
March 12, 2010, 09:53 AM
njsden
quote:
change -DEFAULT to -DEFAULTS
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.
The problem is that the tools that you use to generate screens and prompts prefer -DEFAULTS and -DEFAULTH
S meaning seen H meaning HIDDEN
or Prompt Do not Prompt.
March 12, 2010, 11:33 AM
njsden
I stand corrected, JG !
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,
WebFOCUS 7.6.8 WebFOCUS 7.6.10 BI FLEX .NET
March 15, 2010, 04:26 AM
Computix
You need to pass the parameter with IF:
TABLE FILE SP_GET_USER PRINT whatever you need IF @ID EQ 1 IF @NAME IS MISSING END
regards, Markus
WF 7.6.6 (MRE,BID, DevStudio, partly RC) on Windows 2003 /Apache/Tomcat Output: HTML,Excel,PDF,PPT Adapters: SQL Server, DB2, Oracle
March 15, 2010, 05:31 AM
Yangyang
thanks Computix ,
i'm try it , but i also error with @id,@name.....
i will check it with your idea again.
Thanks, James Yang
WebFOCUS 7.6.8 WebFOCUS 7.6.10 BI FLEX .NET
March 16, 2010, 02:03 AM
Yangyang
quote:
Computix
hi computix,
i try to :
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