Different values on form and database

hi all
i have a field which counts the number of rows
on the form which is showing a different value (which is correct)
and in the database it is showing a different value (incorrect)
i have issued commit
i am not understanding why this is happening ..
please help me
Mandar

listening for the first time but u r facing the problem, reconfirm that the query/properties are correct in form properties, check it by creating new form module for just checking weather it is showing correct in that form. and c if there is when_new_form_instance trigger or When_Validate_windows trigger used for some execution. and one more thing just check if u didnt change the column and create it again and database type is NO ( properties )

Similar Messages

  • Querying a date field with different masks in form and database

    Dear friends,
    I have a field with date format mask dd/mm/yyyy hh24:mi:ss, but the same field has date format dd/mm/yyyy inside the form which queries it.
    If I run this form, obviously I will query this date in dd/mm/yyyy format mask, but this date is not being found because it doesn't include hh24:mi:ss (hour) from the database field.
    How can I solve this problem? I tried to change my form, putting a format mask with hours, but it requires me to query this date with time, and obviously no one needs to know the exact moment (with seconds!) when the date was recorded in the database.
    Thanks, and best regards,
    Franklin

    Franklin,
    You could instruct your users to use the '%' when they enter a date search criteria. Another alternative would be to programatically add the '%' to the date. Also, if your Block based on a view you could alter the vuew to use TRUNC() on the date field to drop the time.
    Another option would be to use the Pre-Query trigger to modify the Block WHERE clause to: TRUNC(date_field) = :block.date_field.
    Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question, please mark the response accordingly. Thanks!

  • How to populate SNDPRN with different values in Development and Production?

    Hello experts,
    I have to fill the field SNDPRN in the message mapping with a different value in Development and in Production. As I am new to PI, I used a simple solution - but it is rather ugly: I set a constant value in the mapping in development and a different one in Production. However, I would like to know if there is any solution to have a condition in the mapping like:
    IF system is Development, set SNDPRN as Constant1.
    IF system is Production, set SNDPRN as Constant2.
    (And eventually IF system is Test, set SNDPRN as Constant3)
    Thanks in advance for your help,
    Luis

    Hi Luis,
          You can go with the parameterized mapping , where you can provide different values for SNDPRN in interface determination for development and production.
          At point of time if you want to change the values it requires only a change in the configuration.
          Please refer the below links for reference;
    Parameterized Mapping Programs - Enterprise Services Repository - SAP Library
    http://scn.sap.com/people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
         We are following the same approach for some of our interfaces.
    - Muru

  • Flash form and  Database integration using PHP

    One of the simpleest ways to Flash forms and data components
    to interact with a MySQL Database is with the use of PHP scripts.
    These scripts can be the intermediary between the Flash form and
    the MySQL Database. There are some
    FREE Tutorials available at
    http://www.interactivewebconcepts.com
    I hope this helps.
    Maurice

    I think i found your problem.
    It's a Syntax Error here you should use . instead of ,...
    [code]
    Subject",$CompanyName
    [/code]
    this should work.
    [code]
    Subject".$CompanyName
    [/code]

  • Different values for encryption and Decryption ...

    The following program takes a string as input ...
    it uses tripel DES algorithm for encryption/decryption...
    The ciphertext is converted into hexachar string by the following process..
    1.first the cipher text is converted into byte format ..
    2.Then each byte is converted into two hexa-characters ..
    3.a string is formed by appending all the hexa-characters.
    when deconverting this hexa-character string into original cipher text
    Iam not getting the same byte string ...pls check and do let me know if you find out any mistake..
    BUT THE FINAL DECRYPTION IS WORKING GOOD (I.E I GOT THE ORIGINAL INPUT STRING AFTER DECRIPTION ...BUT THE CIPHER TEXT IS NOT SAME ..)
    import java.security.*;
    import javax.crypto.*;
    import java.io.*;
    public class endecryptor
         public static void main( String [] args ) throws Exception
              if ( args.length != 1 )
                        System.err.println("Usage: java SimpleExample text" );
                        System.exit(1);
              endecryptor d = new endecryptor();
              String text = args[0].trim();
              System.out.println("Generating a DESede (TripleDES) key ... " );
              //add the provider
              Provider sunJce = new com.sun.crypto.provider.SunJCE();
              Security.addProvider(sunJce);
              //create a triple DES key
              KeyGenerator keyGenerator = KeyGenerator.getInstance("DESede");
              keyGenerator.init(168); //initialize with the keysize
              Key key = keyGenerator.generateKey();
              System.out.println("Key Algorithm :"+key.getAlgorithm());
              System.out.println("Key Algorithm :"+key);
              System.out.println( "Done generating the key." );
              //create a cipher using a key to initialize it
              Cipher cipher = Cipher.getInstance( "DESede/ECB/PKCS5Padding" );
              cipher.init( Cipher.ENCRYPT_MODE, key );;
              byte[] plaintext = text.getBytes( "UTF8" );
              //print out the bytes of the plaintext
              System.out.println( "\nPlaintext: "+plaintext);
              //perform the actual encryption
              byte[] ciphertext = cipher.doFinal( plaintext);
              //print out the ciphertext
              System.out.println( "\n\nCiphertext: "+ciphertext );
              System.out.println("Converting the cyphertext into hexachar ...");
              String hexcharString = d.bytes2Hex(ciphertext);
              System.out.println("hexcharString::"+hexcharString);
              //re initialize the cipher to decrypt mode
              byte[] tempCipherText = d.decryptorOfHexcharString(hexcharString);
              System.out.println( "after decryptor (for decrypting the hexchar) function ....");
              System.out.println("Temp Ciphertext ::"+ tempCipherText);
              System.out.println( "\n\nCiphertext: "+ciphertext );
              System.out.println("Decrypting the string ...");
              cipher.init( Cipher.DECRYPT_MODE, key );
              //perform the decryption
              //byte[] decryptedText = cipher.doFinal( ciphertext );
              byte[] decryptedText = cipher.doFinal( tempCipherText );
              String output = new String( decryptedText, "UTF8" );
              System.out.println( "\n\nDecrypted Text:" + output );
         public String bytes2Hex(byte[] raw) {
         // here is the code to convert a byte array to hex rep
         int higherbyte; // higher bits in the byte
         int lowerbyte; // the lower bits in the byte
         StringBuffer sb = new StringBuffer();
         int i;
         for (i = 0; i < raw.length; i++) {
         lowerbyte = (raw[i] & 0xf);
         higherbyte = (raw[i] >>> 4) & 0xf;
         sb.append(oneByte2HexChar(higherbyte));
         sb.append(oneByte2HexChar(lowerbyte));
         return sb.toString();
         } // end method bytes2Hex
         public char oneByte2HexChar (int fourbits) {
         // converts byte lower bits to hex char
         if (fourbits < 10) { return (char)('0' + fourbits); }
         return (char) ('a' + (fourbits - 10)) ;
         } // end method oneByte2HexChar
         public byte[] decryptorOfHexcharString(String hexcharStr)
                   int checker=0;
                   char ch1,ch2;
                   byte tempbyte1,tempbyte2,resultbyte;
                   int k=0,stringlength;
                   boolean lengthChecker;
                   int len = hexcharStr.length();
                   byte[] tempCipher = new byte[len/2];
                   System.out.println("length of the hex string:"+len);
                   stringlength = hexcharStr.length();
                   if(stringlength%2 == 0)
                        lengthChecker = true;
                   else
                        lengthChecker = false;
                   for(int i=0;i<stringlength;)
                        ch1 = hexcharStr.charAt(i);
                        tempbyte1 = (byte) getIntValue(ch1);
                        tempbyte1 = (byte) (tempbyte1 << 4);
                        if(i == stringlength-1)
                        if(lengthChecker)
                             ch2 = hexcharStr.charAt(i+1);
                             tempbyte2 = (byte) getIntValue(ch2);
                        else
                             tempbyte2 = 0;
                        else
                             ch2 = hexcharStr.charAt(i+1);
                             tempbyte2 = (byte) getIntValue(ch2);
                        resultbyte = (byte) (tempbyte1 | tempbyte2);
                        tempCipher[k++] = resultbyte;
                        i += 2;
                   return tempCipher;
              public int getIntValue(char character)
                   int val;
                   if(Character.isDigit(character))
                             val = ((int) character ) - '0';
                   else
                             val = ((int) character) + 10 - 'a';
                   return val;

    Dude - the only problem I can see is when you do stuff like this:        System.out.println("\nPlaintext: " + plaintext); That does NOT "print the bytes of" plaintext[]; it just spits out the array's hashcode. Two arrays where that value is different are just two different array variables - says nothing about the content of those arrays.
    Do your byte2hex trick on each ciphertext, and they'll be the same.
    One final thing - please learn to use the [ code ] tags when you post code; it helps us read your code and respond to it.
    Grant

  • Forms and database character conversion

    Hi,
    We currently have a database setup to use a non-utf8 characters set, I believe it is set up for western european languages only. We now want to expand our database to include support for other languages such as arabic and japanese. To do this we would like to make a copy of our existing database and change the charecter set to UTF8.
    We also have a Forms application currently using Forms 5 and due to be upgraded to 11g.
    What sort of implications willl changing the database character set have for the existing Oracle Forms? What sort of changes if any will we need to make to the Forms in order to get them working with the new character set?
    Thanks for your help.

    hi
    check out the following link i hope it helps u.
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    sarah

  • Bug while deleting values in form and it's parent member is dynamic calc

    Hi,
    I'm having a problem that seems to be a bug. I am trying to delete the values of member A11 in the following hierarchy, in a Planning Form:
    A (Dynamic Calc)
    |_A1 (Dynamic Calc)
    |__A11 (Store)
    |_A2(Dynamic Calc)
    !_A21 (Store)
    However when I save the form that has IDescendants(A) in rows, values aren't deleted and it's replaced with the value in A1. I'm not sure whats going on but if I place Ilvl0Descendants(A) in form, it works without problems.
    Anyone had this problem before? Thank you

    Hi, have a read of http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin_11122/ch02s04.html
    to understand what's happened and why

  • How table GLT0 work? (Different value between GLT0 and BSAS)

    Anyone know about how the table GLT0 work?
    After checked in sapenote sapnote 100273 which said "For an FI posting (for example, with Transaction FB01),
    the balances resulting from the posting are updated twice in the G/L Account Monthly
    Debits and Credits (table GLT0)."
    So, Any change amount value of items in accounting doc. This problem should to update, correct?
    For any change of amount value in item of accounting doc and currencies is change.
    Need to reupdate this  table with new currencies? or any logic
    Now, I found a problem is "Account balance" value in currency group (USD) in transaction FS10
    and total sum of "USD Amount" in transaction code FBL3 (If click to sum by currency)
    are different for 17.79 USD.
    I tried to get a logic of this 2 transaction code and found detail as below:
    FS10 : Get data from table GLT0 and for group currency report. Program select data
    from field KSLVT and KSLXX to display in report.
    FBL3 : Get all data until selected period in table BSAS and sum total amount from field BSAS-DMBE2
    (Amount of USD Currency)
    Actually, This 2 report should to have the same account balance.
    So, My question is
    1. When the table (GLT0) update?
    2. Can have a problem with the data in GLT0 (field KSLVT and KSLXX t)
    and sum of amount USD curency BSAS-DMBE2 are differenct?
    If can have, how is occur?
    Many thank in advance.

    Hi,
    Did you find any relationship between the data (sql data and Essbase)?
    While you are loading fresh data, there is no discrepancy.
    You find discrepancy at the time of incremental loading.
    It might be possible in incremental loading data can be added to already existing value in dimension.
    In that case you will find your Essbase data is 2times or 3 times more than base data (sql).
    Then check there might be some setting.
    Thanks
    Dhanjit G

  • What are the best security practices for your forms and databases

    What are some of the best security practices to follow to
    ensure your database isn't attacked with injections, forms abused
    with snippets of code, and mass spam DB inserts on your
    forms?

    On Sat, 29 Mar 2008 17:17:01 +0000 (UTC), "jsteinmann"
    <[email protected]> wrote:
    >What are some of the best security practices to follow to
    ensure your database isn't attacked with injections, forms abused
    with snippets of code, and mass spam DB inserts on your forms?
    David Powers books on php for Dw give detailed advice on how
    to do
    forms, first with html, and then validate them with secure
    php
    scripts.
    http://foundationphp.com/
    ~Malcolm N....
    ~

  • Web form and database security risk

    I'd like to develop an Oracle Form or APEX Form where people don't have to login to use it. Like a registration form on our website, where anyone can fill it out. Ideally, the information entered into the form would be saved to an Oracle table (could use a flat file if database security is an issue). I'm a developer and don't know a lot about the security side.
    I'm thinking we would need a static IP address and an Oracle public password that doesn't expire, since the public doesn't have to login to use the form.
    Is this possible and is it a database or network security risk ?

    An APEX page can certainly be configured to not require authentication (that's pretty standard for the login/ registration page). There is no need for an "Oracle public password." There are accounts in the Oracle database that APEX uses but that no human needs to know the password for. If that's what you mean by "Oracle public password" then, yes, you do. But that would be the case no matter what authentication and authorization scheme you use in APEX.
    A static IP address for your web server is likely a good idea. It's possible to have DNS work with dynamic IP addresses but that's probably not what you want.
    Justin

  • Creating Forms and Databases

    Hello, I've uploaded my database onto my site and now I've
    created an online form that is suppose to populate my database,
    however I can't get it to submit the data into the database. I used
    the "Record Insertion Form Wizard" in Dreamweaver to create the
    form. When I test online, fill in all the fields and click on
    submit , it returns me to the index.asp page with an error message
    "Internal Server Error". I've also created an additional page
    called hello.asp for when the submit button is pressed the page
    would "go to" the hello.asp page of my site. I don't know what I'm
    doing wrong or what I need to do to correct. Please help! Thank
    you.

    In IE go into options and under the Advanced Tab deselect the
    option to
    "Display Friendly URL Errors", then you will get the true
    problem. The most
    likely cause is a permissions issue with the database. You
    need to ensure
    that it has write but not browse access enabled.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Inquiring Mind" <[email protected]> wrote
    in message
    news:ep94u2$met$[email protected]..
    > Hello, I've uploaded my database onto my site and now
    I've created an
    > online
    > form that is suppose to populate my database, however I
    can't get it to
    > submit
    > the data into the database. I used the "Record Insertion
    Form Wizard" in
    > Dreamweaver to create the form. When I test online, fill
    in all the
    > fields
    > and click on submit , it returns me to the index.asp
    page with an error
    > message
    > "Internal Server Error". I've also created an additional
    page called
    > hello.asp
    > for when the submit button is pressed the page would "go
    to" the hello.asp
    > page
    > of my site. I don't know what I'm doing wrong or what I
    need to do to
    > correct.
    > Please help! Thank you.
    >
    >

  • Forms and database connectivity

    Hi to all ,
    I am connecting my form (Dev suite 10g) from a Win XP client to a database (Oracle 9i) on Win-2003 server , while connecting it is connecting fine and giving me access to all tables from a specific user, but when i am running the form it was not showing me anything.
    Can any one suggest me what could be the probable problem and solutions to that also......

    Hi,
    Please check you oc4j instance is running otherwise you should mention the error(what you see...).

  • Forms and Databases

    Hello, I've uploaded my database onto my site and now I've
    created an online form that is suppose to populate my database,
    however I can't get it to submit the data into the database. I used
    the "Record Insertion Form Wizard" in Dreamweaver to create the
    form. When I test online, fill in all the fields and click on
    submit , it returns me to the index.asp page with an error message
    "Internal Server Error". I've also created an additional page
    called hello.asp for when the submit button is pressed the page
    would "go to" the hello.asp page of my site. I don't know what I'm
    doing wrong or what I need to do to correct. Please help! Thank
    you.
    Here's the site I'm
    working on

    First question.
    Can you return any data? That is do you have a page that is
    populated
    from the database. My reason for this question to asert that
    you have
    connection strings/dsn, etc set up on the site the same as
    they are
    setup up on your test server.

  • Forms and database concept

    This question is tricky let's see who answers it right - monica give it try...
    Q1. If i have three trigger written at the block level namely-
    pre-delete
    pre-insert
    pre-update
    and then i do three operations update,delete and insert onthe table what will be the order of execution of the triggers and WHY?
    I am answering the order but i want WHY? so.
    A1. Pre-delete
    Pre-update
    Pre-insert
    but why?

    Anthony,
    each Forms application rewuired database authentication information to access teh database schema. This information can be provided in A Forms login dialog, or as mentioned, stored in an LDAP server using Oracle SSO.
    The Forms application only knows about the current conencted username and password, not about previous users. I don't see a security issue with this.
    Frank

  • Forms and Reports: Automated Test tools - functionality AND performance

    All,
    I'm looking to get a few leads on an automated test tools that may be used to validate Oracle forms and reports (see my software configuration below). I'm looking for tools that can automate both functional tests and performance. By this I mean;
    Functional Testing:
    * Use of shortcut keys
    * Navigation between fields
    * Screen organisation (filed locations)
    * Exercise forms validation (bad input values)
    * Provide values to forms and simulate user commit, and go and verify database state is as expected
    Performance Testing:
    * carry out tests for fixed user load
    * carry out tests for scaled step increase in user load
    * automated collection of log files and metrics during test
    So far I have:
    http://www.neotys.com/
    Thanks in advance for your response.
    Mathew Butler
    Configuration:
    Red Hat Enterprise Linux x86-64 architecture v4.5 64 bit
    Oracle Application Server 10.1.2.0.2 ( with patch 10.1.2.3 )
    Oracle Developer Suite (Oracle Forms and Reports) V10.1.2.0.2 ( with patch 10.1.2.3 )
    Oracle JInitiator 1.3.1.17 or later
    Microsoft Internet Explorer 6

    are there any tools for doing this activity like oracle recommended tools?
    Your question is unclear.  As IK mentioned, the only tool you need is a new version of Oracle Forms/Reports.  Open your v10 modules in a v11 Builder and select Save.  You now have a v11 module.  Doing a "Compile All PL/SQL" before saving is a good idea, but not required.  The Builders and utilites provided with the version 11 installation are the only supported tools for upgrading your application.  If you are trying to do the conversion of many Forms files in a scripted manner, you can use the Forms compiler in a script.  Generating new "X" files will also update the source modules (fmb, mmb, pll).  See MyOracleSupport Note 955143.1
    Also included in the installation in the Forms Migration Assistant.  Although it is more useful to people coming from older versions, it can also be used to move from v10 to 11.  It allows you to select more than one file at a time.  Documentation for this utility can be found in the Forms Upgrade Guide.
    Using the Oracle Forms Migration Assistant

Maybe you are looking for

  • How I can change my itunes account of country, even if I have credit?

    I need to change my account to another country, but I can not becauseI get a message that even I have credit on the account, and although Ido not want that, I want to keep my account Thanks

  • Using iPod with high frequencies

    Hi there - I'm having treatment for tinnitus (high-pitched sound in the ear). There is a treatment where you listen to music interlaced with high frequency sounds which is supposed to stimulate the brain & the cilia inside the ear. They have CDs avai

  • Device dose not on & standby

    i am using Nokia 5233 device, i reset my phone by *#7370#. but it dose not switch on & if on it does not standby long time.

  • HP Webcam Driver for Win 8.1 64 bits on HP Compaq 6530b

    The problem started after upgrading to win 8.1 professional 64 bits on my HP compaq 6530b. Drivers for Win 7 professional x64 didn't work. I even refreshed BIOS last version and tried other driver versions for HP Webcam but in vain. When opening webc

  • File Vault Issue with Migration Assistant

    I've just spent 24hrs sorting out the mess this process left. Migrated - apparently successfully - my file vault protected home folder / user account from my old G4 466MHz 30Gb machine running 10.3.8. Everything ran perfectly until I tried to import