autoComplete question. I am trying to get an autoComplete statement t

autoComplete question.

I am trying to get an autoComplete statement to work and Appian is throwing an error.

I am wondering if the predefined datastore has to have a name longer than three letters.
I looked at documentation and could not see anything refer to the name size being an issue.
If I chose a different database and table, I can get it to work. This is a view and I am not able to get it to work.

I can query view SQL Server 2008 without and issue and also with a query database node in Appian it will work.

var query = "Select applicationname from vw_active_application where applicationname not in ('zOther','DBA','') order by applicationname”;
FormAPI.attachAutocompleteFromQuery("appName”,"jdbc/DDS", query,"applicationname", " applicationname",false);


I even tried it without the where and order clause and it will not work.

Any thoughts?

...

OriginalPostID-117847

OriginalPostID-117847

  Discussion posts and replies are publicly visible

Parents
  • Hi Eduardo,
    We had a process using the "attachAutocompleteFromQuery" and it worked fine in 661. we have upgraded to 7.6 and its not working. the log says "ERROR com.appiancorp.database.ExecuteQuery - javax.naming.NameNotFoundException: java:jdbc/Appian_SoR
    javax.naming.NameNotFoundException: java:jdbc/Appian_SoR".
    I am able to use the same predefined data-source for querying the DB directly in query DB node and it works fine.

    I also tried importing the sample app "Autocomplete Example" for fruits that you have posted in the link provided above. I am getting the same exception in logs for this as well. Although the tables are created and I can see the values inside tables, means the Data-source configuration is fine.

    can you please assist in this ?
Reply
  • Hi Eduardo,
    We had a process using the "attachAutocompleteFromQuery" and it worked fine in 661. we have upgraded to 7.6 and its not working. the log says "ERROR com.appiancorp.database.ExecuteQuery - javax.naming.NameNotFoundException: java:jdbc/Appian_SoR
    javax.naming.NameNotFoundException: java:jdbc/Appian_SoR".
    I am able to use the same predefined data-source for querying the DB directly in query DB node and it works fine.

    I also tried importing the sample app "Autocomplete Example" for fruits that you have posted in the link provided above. I am getting the same exception in logs for this as well. Although the tables are created and I can see the values inside tables, means the Data-source configuration is fine.

    can you please assist in this ?
Children
No Data