Suggest plsql code for form security during runtime

Hi
I made a project using forms 6I . I created 4 forms in all. I created a Menu item too like create,insert, delete,modify records, reports print etc. Now What I want is “ if user want to enter a particular form he should select appropriate menu item from the menu “ But what I my exact need is if user attempt to enter a form “a small popup dialogue box should be displayed in the middle of the screen and asks for a password” . So I want a pl&sql function or procedure which creates a default password and match the same when the user enterered the same in popup dialogue box and allow or reject the user request.” Please suggest me a full DETAILED PL/SQL CODE FOR THIS PURPOSE. OR ANY FORM 6I FEATURE.
thanks in advance
prasanth as.

The dialog box is part of the ftandard Forms functionality. What you need to do is set up the user account with the password set to EXPIRED and no grace logins. The Admin Guide tells you how to do this.
Cheers, APC

Similar Messages

  • How to explicitely write PLSQL code for "Help - Display Error"? [SOLVED]

    I'm using menu DEFAULT&SMARTBAR and I'd like to write command in PLSQL code for "Help - Display Error" to display error. Has anyone any idea how to do this? I can not find syntaks in form help for this.
    Message was edited by:
    marussig

    Display_Error;

  • How to create plsql code for a snowflake cube

    hi everybody!
    do anyone know how to create plsql code for a snowflake tiype dimension to create
    a cube?how to map the atributes, or if there are any exceptional atributes which I can use like in a temporal dimension?
    thank you
    waiting for any answer

    The DBMS_AWM package provides stored procedures for creating an analytic workspace cube from a star schema. Is it posible to create a cube from a snoflake schema?

  • Change Form Size during runtime

    Could someone tell me how to change the size of my VI form during runtime?
    I want the ability to click a button and have the height increase by 50 points or so, then go back to the original value after I click the button again.
    Thanks for the help!
    Angus Cattle from Pool Ranch and Steel Repairs via Joe's Welding.

    Ok, that got me on the right track.
    For some reason, though, my VI still does not change whenever I click the button.
    I have attached my VI, saved in 8.2 format.
    Does anyone see why my form doesn't grow by "98" whenever I click the "More >>" button?
    Angus Cattle from Pool Ranch and Steel Repairs via Joe's Welding.
    Attachments:
    Event Notifications.vi ‏44 KB

  • Plsql code for button.....

    i have a page which contain fields term_id,*term_desc*,*term_condition*
    and some buttons Add,*delete* and save..
    Actually no data in the table..
    when i press Add button the term_id should get increment by '1' .
    where i have to wite the below coding in Edit Add button?
    can i put the coding in Conditional Item Display condition type PLSQL?
    declare
    a number;
    begin
    select max(nvl(term_id,0))+1 into a from term_creation;
    *:P5_TERM_ID*:=a;
    end;
    Edited by: skud on Mar 5, 2011 2:05 AM

    You can submit the page with a request say "MY_REQUEST" and run a conditional PLSQL block(request equal to MY_REQUEST) and add the PLSQL code there.
    If you want to do it without submitting page
    <li>Apex Version 4 : Add an id to button (button attributes, id ="MY_BUTTON" ) and add a Dynamic Action fired on click of DOM element : MY_BUTTON , event type would be PLSQL and write your PLSQL code there(add required page items to be submitted in the field)
    <li>Apex 3.x and 2.x(works iwth apex 4 too), create an ondemand PLSQL process, call the process from a javascript function(add the item values to session using the ajax request handle) and call the javascript function from the button click( action type: redircet to URL , javascript:function_name(parameter1,parameter2) )

  • Problem signing code for application with embedded runtime

    Hi,
    I have an Adobe Air application which I am publishing with the runtime embedded.  There are lots of reasons for publishing this way.
    I have already seen an unknown publisher message after signing on Windows 8 and a tester reported the same thing on Windows 7.  According to the cert issuer (DigiCert) I need to have an Extended Validation (EV) certificate to get by the Windows 8 issue, but there was no explanation on the Windows 7 issue. 
    As the windows file is essentially a folder wiith ".app" appended to it's name, I'm not sure how signing (which I am doing with the Signature tab on the Flash GUI) ensures that the executable contained in that file is signed.
    Can anyone tell me anything about code signing when publishing an AIR application with embedded runtime?
    Best,
    Chris McLaughlin

    Not that I can think of.  What OS are they running?  Do they have the shared runtime also installed?

  • PLSQL Code for Substracting / Reducing Quantity

    Hi All
    I have two tables Cash and Product. Cash table has cash related sales in it. Product has product information in it.
    End user selects the products and specifying their quantity in cash form then saves it. The quantity must be reduced or deducted form product table before the next cash sale is booked in cash so it will reflect the actual stock or quantity of product.
    My question is how to know the end user has selected which product and it's quantity?
    What would be the code?
    Best Regards
    Thunder2777

    Hi,
    If you don't already have one, add a quantity_in_stock column to the product table, with a check constraint that guarantees this column is greater than or equal to 0.
    Add a trigger to the cash table, to change product.quantity_in_stock when any change is made to the cash table, somehting like this untested example:
    CREATE OR REPLACE TRIGGER     cash_bdiu
    BEFORE     DELETE OR INSERT OR UPDATE
    ON     cash
    FOR EACH ROW
    DECLARE
         net_amt     NUMBER     := NVL (:NEW.quantity;, 0);
    BEGIN
         IF  :OLD.quantity != 0
         THEN     -- Add back old quantity
              IF  :OLD.product != :NEW.product
              THEN     -- undo previous transaction
                   UPDATE  procuct
                   SET     quantity_in_stock := quantity_in_stock + :OLD.quantity
                   WHERE     product_id       = :OLD.product_id;
              ELSE     -- combine with normal update below
                   net_amt := net_amt - :OLD.quantity;
              END IF;
         END IF;
         IF  net_amt != 0
         THEN
              UPDATE  product
              SET     quantity_in_stock := quantity_in_stock - net_quantity
              WHERE     product_id       = :NEW.product_id;
         END IF;
    END;Most of the complexity is due to handling situation like:
    (a) a row is deleted
    (b) a row is updated with a different quantity
    (c) a row is updated with a different product_id (and perhaps a different quantity)
    We want to avoid doing two UPDATES on the same row of product in the same call to this trigger. That's why I used the local variable net_amount.

  • Code for creating secure envelope

    Hi,
    We have a pdf document, but we need to create a secure envelope around it, programatically.
    Can we create a secure envelope through a java program?
    If yes, can you pls share the code to do it?
    Thanks.

    What kind of "secure envelope" are you looking for?
    You can send me a PM or email to discuss it further.

  • JAVA Mapping for XML conversion during runtime

    Dear SAP JAVA experts,
    For quite I have been struggling to keep the JAVA code in place for JSON to XML conversion being a newbie.
    Following is the code snippet.
    import java.io.InputStream;
    import net.sf.json.JSON;
    import net.sf.json.JSONSerializer;
    import net.sf.json.xml.XMLSerializer;
    import org.apache.commons.io.IOUtils;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    import com.sap.aii.utilxi.core.io.IOUtil;
    public class RuntimeJSONtoXML extends AbstractTransformation {
      public void transform(TransformationInput input, TransformationOutput output)
      throws StreamTransformationException {
      try
    //InputStream is = JSONtoXML.class.getResourceAsStream("JSON.txt");
       String strJSON = "";
       InputStream inputStream = input.getInputPayload().getInputStream();
       inputStream.close();
       String jsonData = IOUtils.toString(strJSON);
               XMLSerializer serializer = new XMLSerializer();
               JSON json = JSONSerializer.toJSON( jsonData );
               String xml = serializer.write( json );
               //System.out.println(xml);
               output.getOutputPayload().getOutputStream().write(strJSON.getBytes());
      catch(Exception ie) { }
    Caught unaware of 2 queries.
    1.I have added the com.sap.aii.utilxi.core.io.IOUtil jar files from the PI server even though its displays error "The com.sap.aii.utilxi can not be resolved". Also I added the XPI libraries in NWDS but nothing moving to solve the issue.
    2. I have commented the line of code where I have placed a test file in the path to test it i.e. JSON.text. But when it is deployed as Archived files, then this code has to be replaced.
    The Method toString(InputStream) in the type IOUtils is not applicable for the arguments (String)
    Regards
    Rebecca..

    1.I have added the com.sap.aii.utilxi.core.io.IOUtil jar files from the PI server even though its displays error "The com.sap.aii.utilxi can not be resolved". Also I added the XPI libraries in NWDS but nothing moving to solve the issue.
    Which jar file did you add?
    /usr/sap/<<SID>>/DVEBMGS<<SYSNO>>/j2ee/cluster/bin/ext/com.sap.xi.util.misc/lib
    jar file name : com.sap.aii.utilxi.core.jar
    2. I have commented the line of code where I have placed a test file in the path to test it i.e. JSON.text. But when it is deployed as Archived files, then this code has to be replaced.
    The Method toString(InputStream) in the type IOUtils is not applicable for the arguments (String)
    To read the input stream you should have
    InputStream inputstream = transformationInput.getInputPayload().getInputStream();
    Please refer to below blog just to get an idea on working with input stream and output stream.
    Dynamic file name for pass-through scenario - Process Integration - SCN Wiki

  • How BPEL refers to human task form application during runtime ?

    Hi All,
    I have worked on coulple of 10g BPEL human tasks and I remember '.tform' file used to capture
    task display jsp application url
    content of tform file
    <template>${http_url}/${domain_id}/BPEL_PROCESS/1.0/Task Form/Task Form.jsp</template>
    I am looking for help on how same is achieved in 11g
    in Nutshell,
    How does 11g bpel knows which task form it has to invoke?
    Thanks,
    Praveen

    Hi Praveen
    If you already have a bpm/bpel application in soa 11g, open that in JDeveloper and serach for the file named hwtaskflow.xml. This file will be under your taskforms project -> Application Sources.
    In JDev, for each human task, there is a .task file generated with payload details, actions that task is allowed etc. We can generate taskform for this .task using autogenerte or custom. Either way the above file will have the details like the association of the actual Task and correspond taskform jspx file. If you are familiar with the ADF architecture like bindings you can understand much better.
    In EM console, click on the workflow file that is deployed under your soa_doamin. On right side, you will see list of all the human tasks and click on any human task. You will see the uri for that task. This is the reference for the deployed composite for that task. Now the above .xml file will have the exact human task name with additional information like which pageflow defintion file to invoke. All the pageflows xml files are under your taskforms\web-inf folder.
    See the below link for more details:
    http://download.oracle.com/docs/cd/E21764_01/integration.1111/e10224/bp_designtf.htm#CHDIFHIJ
    see the section named "28.3.3 What Happens When You Create an ADF Task Flow Based on a Human Task".
    Thanks
    Ravi Jegga

  • Need Sample Code for Form-based Authentication

    Hello.
    I'm trying to setup Form-based Authentication. I keep reading the same (limited) documentation about putting this in your server's .xml files:
    <form method="POST" action="j_security_check">
            <input type="text" name="j_username">
            <input type="password" name="j_password">
    </form>I don't even have a web.xml or sun-web.xml file. I cannot find examples of Sun One WS either.
    Any sample coding - including yoru web.xml, sun-web.xml - would be greatly appeciated.
    Thanks!
    Sam

    Refer http://docs.sun.com/source/817-1833-10/pwadeply.html#wp40541

  • Discount codes for web forms

    Question:
    I have been using two web forms to allow access to a secure zone. Of them, one is for the trial user access and another is for the paid user access.
    The problem is: Can I use discount codes for the secure zone access? I can't see the way of integrating eCommerce discount codes with web forms.
    Answer:
    Discount codes don't actually work with secure zone access since you have to accept payment through web forms. However, I hired an outside developer to write some code for me, which I don't mind sharing:
    Put this in the Head of your document:
    <script type="text/javascript">
    function refreshAmountToCharge() {
    var frm = document.forms[0];
    var defaultAmountToCharge = 100;
    var couponCode = "ABC123"; // A tribute to Michael Jackson...
    var percentOff = 50;
    var couponCode2 = "DISCOUNT2";
    var percentOff2 = 67;
    var couponCode3 = "DISCOUNT3";
    var percentOff3 = 99;
    var couponCode4 = "DISCOUNT4";
    var percentOff4 = 75;
    /* Fixed amount coupon c*/
    var fixedCouponCode1 = "FIXED1";
    var fixedAmount1 = 20.00;
    var fixedCouponCode2 = "FIXED2";
    var fixedAmount2 = 6.00;
    var fixedCouponCode3 = "FIXED3";
    var fixedAmount3 = 7.00;
    var amountToCharge = defaultAmountToCharge.toFixed(2);
    if (frm.couponCode.value.toUpperCase() == couponCode)
      amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff / 100)).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == couponCode2)
      amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff2 / 100)).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == couponCode3)
      amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff3 / 100)).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == couponCode4)
      amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff4 / 100)).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == fixedCouponCode1)
      amountToCharge = (defaultAmountToCharge - fixedAmount1).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == fixedCouponCode2)
      amountToCharge = (defaultAmountToCharge - fixedAmount2).toFixed(2);
    else if (frm.couponCode.value.toUpperCase() == fixedCouponCode3)
      amountToCharge = (defaultAmountToCharge - fixedAmount3).toFixed(2);
    frm.Amount.value = amountToCharge;
    // ----------- End Coupon Code Javascript ---------------------
    </script>
    Then, you'll need a Coupon Code field in your form:
    <div class="item">
        <label for="couponCode">Coupon Code</label><br />
        <input type="text" name="couponCode" id="couponCode" class="cat_textbox" />
        <a href="javascript:refreshAmountToCharge()">Update</a>
    </div>
    That's it. Let me know if you have any questions. You can set multiple codes, either percentage based or fixed amount. Experiment with it to make sure it works as expected.

    This is great Mario! Thanks so much for sharing. It works very well.
    One thing I want to add is a validation for the coupon update action. If the coupon is no longer valid or entered incorrectly, a message would be great, because the person might no even notice the fact that the amount did not change even though they think they entered a valid discount code.
    Sean

  • Creating lines in a form during runtime

    I need to create some lines in a form canvas during runtime. How can i do that?
    Thanks for attemption.

    You can create the line on a stacked canvas at design time.
    Then you can show or hide the stacked canvas at runtime.
    Good luck
    Bang Dinh

  • Free Form Template and Combining Chart Values during Runtim

    Hi Guys,
    Need your expertise on this.  We received some unreasonable request for the following:
    1. Free Form Template DURING Runtime
    - moving charts from one place to another by dragging them from one place to another during runtime
    2. Combining of Chart values during Runtime
    -to be able to mash-up 2 different charts during runtime.  For example, dragging a chart to another chart
    would result to a combined-value of chart.  For instance, you have a Sales Chart and a Production Chart,
    if and when Sales Chart is dragged and placed on top of Production Chart then it would mash-up the values
    and will produce only one chart.
    Is this even possible?
    Hope you guys can help.
    Kind Regards and Many Thanks,
    Mark

    Hi Mark
    1. Free form template is not possible with current version of Dashboard Designer.  You may use the option of Dynamic Visibility to simulate this.  But this might not serve your requirement 100 %.
    2. Your requirement of mixing up chart just by dragging and droping on another is coming under Designing part.  For designing we need software, in my point of view.  Xcelsius is a Tool to generate required output in various formats.  Here we need to finalise the output such as chart type/ data to be displayed/ format to be displayed, etc and while viewing we may play with data but not with objects other than dynamic visibility.
    Hope this clarifies.
    With best wishes
    BaaRaa.

  • Is there a utility to import security for Forms?

    I have used the importsecurity.exe utility to successfully import entity, account, and other dimension security. But it doesn't work for Form security. Is there another way or a way to trick the utility and use it for forms?
    Version 9.2.1 Windows environment. SQL server is the database
    Thanks
    Wags

    Thanks John.
    I have over 200 forms for one application with over 700 lines of security.
    As a test, I manually added a few rows of security directly into the HSP_access_control table and restarted the planning service and that worked. So it looks like I could load all the data directly via a SQL query to accomplish this. I merely need to match-up my object names and related object security from PROD to the object_id's and group ID's in Dev (which are slightly different due to dev and prod security being out of sync)
    Any thoughts on what could go wrong??
    Jeff

Maybe you are looking for

  • SAP MMC  disk + work Stop(Ecc6( Adap+jav),win 2003 -32 bit , oracle-10.2)

    Hi Friends, I hope somebody can help. I have an Ides Ecc6(java+adap) installation on Oracle 10..*.os win 2003 32 bit Then I try to start the System in mmc the dispatcher is stopping (first yeloow then grey) and no error  messages when is see sys log

  • Error when trying to create Delivery

    Hi SAP Gurus When trying to create delivery from Sales order(Va02>Sales document>Delivery),it is taking to Delivery(Vl01n).But there at the initial screen itself it is displaying the error message"Order doesnot exist" Kindly let me know where could b

  • Enabling and disabling the button in the multi record block

    hi all, i am using Forms [32 Bit] Version 6.0.8.24.1 (Production) Oracle Database 10g Release 10.2.0.1.0 - Production i have a multi record block each block contains a button(button is to approve the record in terms of changing the status) i have the

  • Updating non-driver softw

    Audigy 2 ZS on XP SP2. Driver software and Audio Console up-to-date per Automatic Updates. I have an application which identifies out-of-date software by comparing the version on my computer to the version on others' computers. Some of the software s

  • Interacting with 3D objects

    Good Night. I'm doing a project in which I need to interact with 3D objects, ie a 3D object as a cube, for example, can hit a 3D ball and the ball simulates the actual motion as when a ball really hit, something like ping pong. How I can achieve this