How to create the file on a location where the user with rights?

Hello
I have a requirement in my application a lot of program thatcreating a report to a file and it is written in a user's location. Now he specified directly as (c:\ or d:\...).

The problem is that the user does not have right to access that directory. What I suggest, or I want to create is special reports on a location where the user with rights.

Essentially in Windows system % UserProfile % having right to do anyting. Assume that the operating system that is installed in C: the % UserProfile % c:\documents and Settings\nom_utilisateur or D: then D:\Document and user Settings\nom.

How do I get this help please me.

Good help will be appreciated.

Iqbal

Hello
The best practice would be to create the file in My Documents for the user currently logged in windows.

Unfortunately, you did not mention your version of forms. In an older version like 6.x it is function in the library of d2kwutil called Read_Registry in the win_api_environment section, and in the more recent versions the same availble function in the library webutil to client_ name.

So, you can read the registry database for the current logged in user using the function mentioned above of the location next to the register.
My Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell folders

There is an entry named personal. Read the path of this entry when running while generating / record file to the customer's location and save the file in this path.

-Clément

Tags: Oracle Development

Similar Questions

  • How to create the user account using the command?

    How to create the user account using the command?

    Open cmd as administrator, and then type the following commands one after the other

    NET user / add program mypassword
    net localgroup administrators program / add
    net share concfg * C:------/ grant: program, complete
    This will create a user account with the name "Program" and the password "MonMotpasse".

    You can create the user name and password of your choice.
  • How to provide the user with a list of files to download...

    Hai...

    I downloaded the file correctly... now, you should download the file... which has been downloaded... for that we have implemnted the query in the form...

    Select max (id) of APEX_APPLICATION_FILES , later transferred record here will be retrieved and shown.

    Now, we want to provide the user with a list of files to download...Dat, is that it should be on the list files that are no dat, he must select a single file to download?
    can u please tell me how to do...



    David

    Hi David,

    The reason why I proposed to do this is to display date CREATED_ON as you want in the report. If you do not do this, the date can be displayed in a format that you don't like. You don't have to do this bit, if you do not want.

    For example, if you do not set the size, the date may appear as:

    6 NOVEMBER 08

    But, if you set the format, you can get:

    2008-06-11 12:13:15

    It is up to you.

    Andy

  • How to create the table with the description of the table

    Hello

    I would like to create the array with the description of the table (such as the creation of package or procedure with comments).

    Is it possible to achieve thanks to the oracle, if possible please help me achieve this goal.

    Thank you and best regards,

    Ibrahim Sayyed.

    > create table test (col1 number);

    > comment table test is "about a comment ';

    > select comments from user_tab_comments where table_name = 'TEST ';

    COMMENTS
    ____________________________________________________________________
    This is a comment

  • Create the user with privileges only data entry.

    Hello guys,.

    A very basic question. I created the request of APEX, well obviously the user with whom I created this application has developer access, now I want to create a user who is able to see the developed application, I tried to find the user options, but could not.  Someone can help me to find the option, I need to follow, so that the newly created user is only able to enter data into forms and run reports and should not be able to make changes in the application developed.

    Concerning

    Faisal Niazi says:

    A very basic question. I created the request of APEX, well obviously the user with whom I created this application has developer access, now I want to create a user who is able to see the developed application, I tried to find the user options, but could not.  Someone can help me to find the option, I need to follow, so that the newly created user is only able to enter data into forms and run reports and should not be able to make changes in the application developed.

    Create 'end users' by selecting No for the user is an administrator of the workspace and the user is a developer account privilege options create new user accounts. These users connect to the APEX Application Builder. It can be given direct access to a request by specifying the ID of the application or alias to the URL:

    apex.oracle.com/pls/apex/f?p=

    or

    apex.oracle.com/pls/apex/f?p=

    Using an alias for the application is recommended.

    To restrict user access to pages, components and specific applications, create authorisation schemes and the apply to the application level.

  • How to create the user to access the web console to Vcenter Server Appliance

    The default console is located at https:// < ip >: 5480

    For VC apparatus, the user who has access by default is root. Can I create another user level system and grant him access to the console?

    I tried to create a user by useradd m consoleuser and changed the passwd... However, I am not able to connect to the web console with this user...

    On a similar note, can I give access to the console to a user of the AD?

    Concerning

    Girish

    It is probably not supported by VMware, but it seems they're locking access web console rules of pam.

    You must modify the /etc/pam.d/vami-sfcb file to change the reading of the line "auth required pam_succeed_if.so uid eq 0' to succeed/deny rule change.»

    For example, you can change the line to read "auth required pam_succeed_if.so uid > = 0' and then allow any user with a UID of 0 or more to connect to the console of the web."

  • How to create the formula with the lookup table

    Hi, I would like to convert formula in the below format of labview, no idea how this could be done more easy way?

    I intend to use the node form, but I'm not sure how to use the table of choice within the formula not or is that even possible?

    BR, Jani

    Dim dblLookUp (-) As Double = New Double (3, 1) {{4, 4}, {10, 200}, {60, 3000}, {100, 7000}}
       
    If dblAbsValue > = 0 and dblAbsValue<= dbllookup(0,="" 0)="">
    USB = dblLookUp (0, 1) / dblLookUp (0, 0)
    dblAbsValue = dblValue * USB
    ' lblMode.Text = 1
    ElseIf dblAbsValue > dblLookUp (0, 0) and dblAbsValue<= dbllookup(1,="" 0)="">
    USB = (dblLookUp (1, 1) dblLookUp (0, 1)) / ((1, 0) - dblLookUp dblLookUp (0, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (0, 0) + dblLookUp (0, 1)
    ' lblMode.Text = 2
    ElseIf dblAbsValue > dblLookUp (1, 0) and dblAbsValue<= dbllookup(2,="" 0)="">
    USB = (dblLookUp (2, 1) dblLookUp (1, 1)) / (dblLookUp (2, 0) - dblLookUp (1, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (1, 0) + dblLookUp (1, 1)
    ' lblMode.Text = 3
    ElseIf dblAbsValue > dblLookUp (2, 0) and dblAbsValue<= dbllookup(3,="" 0)="">
    USB = (dblLookUp (3, 1) dblLookUp (2, 1)) / (dblLookUp (3, 0) dblLookUp (2, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (2, 0) + dblLookUp (2, 1)
    ' lblMode.Text = 4
    On the other
    dblValue = dblLookUp (3, 1) ' * Math.Sign (dblValue)
    ' lblMode.Text = 5
    End If

    Return dblValue * intSign

    Hello janijt,

    You can certainly use formula node for it. What you would do is to create a constant for the lookup table.

    Here is an implementation in MathScript node

  • How to create the report with check box (Update, Delete) operations

    Hi all

    I want to create report with check boxes.

    I created it based on the user's manual. But do not delete records. Please help me

    Apex. Oracle.com

    workspace: APPSGURU

    RAMBEAU. [email protected]

    P.W:rag$ 123

    Application:36232

    Page: 14

    Thank you and best regards,

    Rambeau

    Raghu,

    Request for check line deleted successfully.

    made some changes in the removal process.

    Leave.

  • How to create the event with the parameter schematically

    Hello

    I created the button schematically, I want to pass the parameter for this event.

    And I must capture this setting in LICS pls help someone.

    OASB OASubmitButtonBean = (OASubmitButtonBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, "BUTTON_SUBMIT");

    oasb.setID ("ZoomBtn");

    oasb.setUINodeName ("ZoomBtn");

    oasb.setEvent ("Zoomeve");

    oasb.setText ("zoom");

    webBean.addIndexedChild (oasb);

    OASubmitButtonBean zoomBt = (OAButtonBean) webBean.findChildRecursive ("ZoomBtn");

    If (zoomBt! = null) {}

    Hashtable paramsWithBinds = new Hashtable (2);

    paramsWithBinds.put ("PoHeaderId", new OADataBoundValueFireActionURL (webBean (OAWebBeanData),

    "{$PoHeaderId}"));

    FireAction = firePartialAction

    OAWebBeanUtils. getFireActionForSubmit (zoomBtn, "openCustRefDetForm", null, paramsWithBinds, true, true);

    zoomBtn.setAttributeValue (PRIMARY_CLIENT_ACTION_ATTR, firePartialAction);

    }

    But it gives the following error.

    • Error (50.9): method getFireActionForSubmit (oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean, java.lang.String, null, com.sun.java.util.collections.Hashtable, boolean, boolean) could not be found in the oracle.apps.fnd.framework.webui.OAWebBeanUtils class

    Dilip salvation,

    Thanks for your replay instance it works fine.

    Good answer,

    Instead of

    import com.sun.java.util.collections.Hashtable;

    We have to import

    import java.util.Hashtable;

    Kind regards

    Sangu

  • How to create the user account of readonly for all devices to CISCO ACS?

    Elements of strategy > ... > Authorization and permissions > The peripheral Administration > Shell profiles > Edit: 'ReadOnly '.

    I tried all levels of privilege, but I am unable to connect to the "asdm" with only the privilege to read.

    so, can someone help me?

    I'm not an expert on all devices, but I can tell you that while you can use a name of user and password to access all devices, you can't have a "generic" set of rules. AAA services operate different based on the model/platform. For example, ASAs, WLCs and Nexus devices are completely different compared to the standard IOS routers and switches. For this this situation (ASDM read-only), you must check for this useful post:

    https://supportforums.Cisco.com/message/853437

    Thanks for the note!

  • How to use the user with event loop event

    Hello

    I want to communicate between 2 VI, so I have a global variable (boolean) who gives the order to an event tool to run. The problem comes from the fact that event loop accepts no global variable, I found on the forum that I can use the user event. Of course, the second VI works normally when I push the button (boolean) in there to run the event loop. Please can someone explain me how to do this, I am a chemist.

    Thank you.

    You enter the receiver structure of event for the event you want to receive.

    To do this in two screws, you will have to share the user between them event reference.

  • create the user with READ only grant

    Hello
    10 g R2 on AIX.
    How to create users with READ only grant on all tables (or all tables in a schema with 70000 tables)?

    Thank you.

    Please refer to: http://www.ulfet.info/index.php?view=oracle.docs_grant.with.loop

  • How to create the project with mutibple workflow (several BPEL files)

    Hi all
    I am newbie with Oracle BPEL. Now, I need to create a project with a lot of process (I mean a lot of .bpel files). So, how should I do. I see in JDeveloper, I only create a .bpel file in a project.

    Can someone help me?
    Thanks in advance

    Nguyen

    You can call several BPEL processes in the BPEL process. He will not however be a project. You will need to deploy the BPEL processes to the BPEL process family school and work.

    You say that you have a starting point. You should be able to achieve this with N flows, but another method would be to put a BSE on the front and the payload can call other BPEL processes.

    see you soon
    James

  • How to create the region with the region

    Hello

    Y at - it opportunities for the region created in another region in the apex oracle 4.2.2.

    If so, please advise how can I achieve this.

    Thank you and best regards,

    Ibrahim Sayyed.

    SAYYED says:

    Y at - it opportunities for the region created in another region in the apex oracle 4.2.2.

    Do you this by specifying a parent region during the creation of a region: on the creation of subregions

  • PL/SLQ - how to create the query with the total horizontal current

    Hello:
    I am creating a report in the following format

    Year name Reg1 Reg2 Reg3
    Al 2001 3 4 5
    2001 4-1-1
    2001 7 5 6
    2002 sue 2 4 1
    2002 Al 1 3 6
    Jim 2002 6 1 3
    2002 16 15 16
    2003 Jim 4-2 - 3
    2003 5 4 - 2
    2003 20 16 23

    Note that totals are piling up horizontally, broken on the year. How to do that, please? Thank you very much!
    Al

Maybe you are looking for