user | lines |
a ---- current , last
b ----- current , last
c ----- current , last
d ----- current , last
z ----- default ( all four line )
fields :
current --- id,time,customer ... blah blah blah
last --- same as above
the form which has all the details of 8 lines called CURRENT/LAST
Now i have a form which shows me all 8 records i.e current and last for a,b,c,d.
BUT i can only see this if i log in as z . because this is a default user when i open a main form .
the button which calls the form CURRENT/LAST is called current .
the code on this button is simple
call_form('current.fmx',hide,do_replace,no_query_o nly);
now the problem is , i have other buttons also on the main form page , so for ex
i click a button called COILS with user a . i can see the appropriate form , when i log out and click on the form CURRENT/LAST , then i open the form as user a but i want to be logged into as user z always .
i need to put a log in command on the button CURRENT ,so that irrespective of user , when ever i click on the button to open the form CURRENT/LAST , i always log in as user z .
a login command on button CURRENT ,so that when i click it , i always log in as z . and so the form will open properly .
In short how to log in as a specific user when a button is clicked .
I USED THE BELOW CODE ON LOGON TRIGGER , is this the way ?
declare
uname varchar2(10);
pass varchar2(10);
begin
uname := 'sap';
pass := 'steady';
logon(uname, pass || '@ass');
end;
KINDLY HELP ME OUT PLZ !
CHEERS
3 2351
user | lines |
a ---- current , last
b ----- current , last
c ----- current , last
d ----- current , last
z ----- default ( all four line )
fields :
current --- id,time,customer ... blah blah blah
last --- same as above
the form which has all the details of 8 lines called CURRENT/LAST
Now i have a form which shows me all 8 records i.e current and last for a,b,c,d.
BUT i can only see this if i log in as z . because this is a default user when i open a main form .
the button which calls the form CURRENT/LAST is called current .
the code on this button is simple
call_form('current.fmx',hide,do_replace,no_query_o nly);
now the problem is , i have other buttons also on the main form page , so for ex
i click a button called COILS with user a . i can see the appropriate form , when i log out and click on the form CURRENT/LAST , then i open the form as user a but i want to be logged into as user z always .
i need to put a log in command on the button CURRENT ,so that irrespective of user , when ever i click on the button to open the form CURRENT/LAST , i always log in as user z .
a login command on button CURRENT ,so that when i click it , i always log in as z . and so the form will open properly .
In short how to log in as a specific user when a button is clicked .
I USED THE BELOW CODE ON LOGON TRIGGER , is this the way ?
declare
uname varchar2(10);
pass varchar2(10);
begin
uname := 'sap';
pass := 'steady';
logon(uname, pass || '@ass');
end;
KINDLY HELP ME OUT PLZ !
CHEERS
Is your above code working properly?
I would suggest you to use PRE-LOGON trigger or PRE-FORM trigger. So before the form gets loaded when called using call_form or GO Form_Name, in PRE-FORM trigger you could set the User/pwd to default and use that for logging in to the current form
Nope it dint work .
Any other idea please?
Nope it dint work .
Any other idea please?
Try using PRE-FORM or PRE-LOGON trigger as I have suggessted above
Sign in to post your reply or Sign up for a free account.
Similar topics
by: |
last post by:
Please help.
After a number of wrong turns and experiments I need advice on login
management system to secure our web pages without inconveniencing our
visitors or our internal staff.
What I...
|
by: Tom Loach |
last post by:
Our system administrator set up an NT server group in order to allow
our users to login to our application via https to our sql server.
The group appears as a User in SQL Server when you look at...
|
by: Siobhan |
last post by:
Hi
What is the recommended way to store a user's database credentials across
the pages of a web application so that each time the database is accessed the
system doesn't have to ask them for their...
|
by: clintonG |
last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2
development. After installing Visual Studio and SQL Express RTM my
application has blown up. Logging in to the application...
|
by: Chris McCandless |
last post by:
Hi,
I am not sure I will be able to explain the problem I am having, but I
will do my best. I have developed an ASP.NET 1.1 application for a
client in VB. It is a program that contains stock...
|
by: Friends |
last post by:
Hi
I need to set security for row level but not based on Database user's
login. It should be based on the user table login. For the particular
user I need to allow only the particular records to...
|
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= |
last post by:
The majority of pages on our site need authentication (forms auth against the
aspnetdb database). I created an '~/auth' folder with its own config file
forcing authentication for any pages in the...
|
by: Gordon |
last post by:
I want to add a feature to a project I'm working on where i have
multiple users set up on my Postgres database with varying levels of
access. At the bare minimum there will be a login user who...
|
by: =?Utf-8?B?QXZhRGV2?= |
last post by:
ASP.Net 2.
We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003
32 Bit with IIS 6. A few library classes we wrote uses impersonation in code
like explained in this...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |