Home » Developer & Programmer » Forms » Form Problem (Server 2003)
Form Problem [message #511227] Fri, 10 June 2011 05:16 Go to next message
mrnaveed
Messages: 74
Registered: December 2009
Location: Pakistan
Member
Dear All when i have made form in developer 6i it works with forms 6i but when i run this form using oracle forms 10g it did not call the form i.e when i run the form enter the user name and password then i does nothing here my code please help


DECLARE
un varchar2(60);
pass varchar(30);
a number;
CURSOR c1 IS select username,password from login;

BEGIN
OPEN c1;

LOOP

FETCH c1 INTO un,pass;
if un = :login.user_name and pass =:login.password then

CALL_FORM('d:\project\opt_form.fmx',no_hide,no_replace);

exit_form(no_validate,no_commit);

end if;

if un<>:login.user_name and pass <>:login.password then
a:=show_alert('Unsucessfull');
clear_form(no_validate,no_commit);
end if;
EXIT WHEN c1%NOTFOUND;
END LOOP;
CLOSE c1;
END;


Thanks in advance. Here the form
  • Attachment: Login1.JPG
    (Size: 75.72KB, Downloaded 594 times)
Re: Form Problem [message #511232 is a reply to message #511227] Fri, 10 June 2011 05:41 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
At the bottom of the screen, theres the "Opening ..." message. Did it open, eventually?

Did you recompile both forms in Forms 10g Builder?
Re: Form Problem [message #511239 is a reply to message #511232] Fri, 10 June 2011 06:36 Go to previous messageGo to next message
mrnaveed
Messages: 74
Registered: December 2009
Location: Pakistan
Member
Yes its working now but i have recompiled my report form report is nor appearing this the code i am using to call report

Run_Product(REPORTS, 'd:\project\EMPLOYEE', SYNCHRONOUS, RUNTIME, FILESYSTEM, '', NULL);


Please view the image file.
  • Attachment: Report.JPG
    (Size: 110.78KB, Downloaded 597 times)
Re: Form Problem [message #511240 is a reply to message #511239] Fri, 10 June 2011 06:46 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Search the board for WEB.SHOW_DOCUMENT.
Re: Form Problem [message #511246 is a reply to message #511240] Fri, 10 June 2011 07:14 Go to previous messageGo to next message
mrnaveed
Messages: 74
Registered: December 2009
Location: Pakistan
Member
Can you explain this line of code please

web.show_document('http://hoitvoltes5:9002/reports/rwservlet? '||v_connect||'&server=ReportsServer_HOITVOLTES5_asin&destype=cache&report='||v_report_name||'&desformat='||v_format| |'&companyid='||:voucher.companyid||'&vouno='||:voucher.vouno,'_blank');
Re: Form Problem [message #511302 is a reply to message #511246] Sat, 11 June 2011 01:56 Go to previous messageGo to next message
ranamirfan
Messages: 535
Registered: January 2006
Location: Pakistan / Saudi Arabia
Senior Member

Dear,
Quote:

Can you explain this line of code please.
web.show_document('http://hoitvoltes5:9002/reports/rwservlet? '||v_connect||'&server=ReportsServer_HOITVOLTES5_asin&destype=cache&report='||v_report_name||'&desformat='||v_format| |'&companyid='||:voucher.companyid||'&vouno='||:voucher.vouno,'_blank');


Please read this documents it'll help for understanding the above code.

http://www.oracle.com/technetwork/developer-tools/forms/documentation/secure-webshowdoc-rep6i-133956.pdf

Regards,
Irfan
Re: Form Problem [message #511313 is a reply to message #511302] Sat, 11 June 2011 06:40 Go to previous message
mrnaveed
Messages: 74
Registered: December 2009
Location: Pakistan
Member
Okay i will read this document then will post answer ant way thanks Rana.
Previous Topic: Import from Excel Strange behaviour
Next Topic: Forms 10g
Goto Forum:
  


Current Time: Thu Sep 12 09:00:26 CDT 2024