• saving return value to database

    By Simon Peter 10 years ago

    Hello with the new version i have been unable to pass the output to Java Script Server Side or even save the element to a document,
    can you give me some more info on how to go about this

    • By Lars Buntrock 10 years ago

      Hi Simon!

      Do you have general problems to get the selected database data to you XPage or do you want to work with the data after the selection. As described in the sample function “setFields” in the documentation you have all database information in the object “db”. And also you can set a CLIENTSIDE function name as callback. For e. g. you can execute in this function a post with the db object data as parameter.
      Otherwise please describe with more details what do you want exactly or - if possible - send me a sample database to hedersoft's info address.

      Lars

      • By Simon Peter 10 years ago

        Hello Lars,
        Thanks for your respond, what i achually want to do is to be able to save the outputed database information to datasouce or database for later use.

        thanks
        Simon

        • By Lars Buntrock 10 years ago

          Hi Simon!

          Instead of $(“#dbbin”).val(dbbin), please try $(“[id$='dbbin']“).val(dbTitle).
          I answered at stackoverflow. So please read there my complete answer.

          http://stackoverflow.com/questions/23774876/xpages-database-open-dialog-custom-control/23778712#23778712


          Lars

          • By Simon Peter 10 years ago

            Hello Lars,

             Thanks for the info, but if i may ask sometime the dialog box display but with out any server info and no error display to tell when am not geting assess to all server i just got a blang dialogbox, do u have any guild for me or what i should do to solve dis problem
            
            • By Simon Peter 10 years ago

              and i saw the bellow error in log

              [0B00:000B-1728] 23.05.2014 09:10:27 HTTP JVM: java.lang.ClassCastException: de.hedersoft.OpenAppDlg incompatible with de.hedersoft.OpenAppDlg