Community

use of select query in customized export java script

Hi,

We are using FC12, we have two database tables in which we wanted to export the field data. While writing java script in custom export setting, the select query is giving error. we are using the following script.

var fileName = Field("Document Section 1\\FileName").Text;

cmd.CommandTex   = "Select FormID From TableName where FileName = '+filename+'" ;

Our next question is, how can we export image into database as binary format?

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Ekaterina

    Hello,

    Please send your issue to the regional support. Send them your project, samples, scenario and purpose description.

    0
  • Avatar
    ankita

    Hi Ekaterina,

    Can we use SELECT query in Rules with javascript?

    like : cmd.CommandTex   = "Select FormID From TableName where FileName = "xyz"; 

     

    We need to select data from database through ABBYY flexicapture12. Is it possible?

    0
  • Avatar
    Ekaterina

    Hello,

    Do you want to query FlexiCapture database or some other database from the code that is stored in the FlexiCapture scripts?

    (it is possible to do both, but please be informed that quering the FlexiCapture database directly is not recommended by ABBYY, because they may change the internal structure of database and then the queries will possibly stop working)

    To simplify querying the database from the code, you may set up the connection string as an Environment Variable

    http://help.abbyy.com/en-us/flexicapture/12/distributed_administrator/environment_variables

    The images are available inside the FlexiCapture object model as IPage::Picture object, that can be converted to a bitmap via the Handle property and then saved any way your language supports.

    However, if you have any problems with making your code inside FlexiCapture work with your database, please address it to your regional support, because this task will be out of scope of this resource.

    0

Please sign in to leave a comment.