<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change Database Table cell value Problem in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524273#M34501</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;It's EQName not EQNames in your database table&lt;/DIV&gt;</description>
    <pubDate>Mon, 03 Jan 2022 14:18:54 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2022-01-03T14:18:54Z</dc:date>
    <item>
      <title>Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524265#M34493</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi everyone, &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;previously&lt;/SPAN&gt; &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;I've successfully import from and export to database. Now &lt;/SPAN&gt;I'd like to test only change specific cell value &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;in database along &lt;/SPAN&gt;with the event happening, t&lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;hough this it's easy to do these things using FlexSim tool (GlobalTable), but still liked to try this function.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;There are two problems, first is that in the manual says that Database.PreparedStatement is a class for execution and manipulation of sql statement. From my export part of code, it seems that &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; Database.PreparedStatement &lt;/SPAN&gt;is matching the header of my FlexSim GlobalTable5 and SQLite Table named Query2. Then the rest of statement.bindParam is dealing with value.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1640508763216.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508533iD21ECDE9019F9A23/image-size/large?v=v2&amp;amp;px=999" role="button" title="1640508763216.png" alt="1640508763216.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;However, if i simply need to change a cell value, I would need to filter that cell out first, but it tells that there are&lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; too many&lt;/SPAN&gt; parameters. How could I fix this problem? &lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1640506822976.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508532iBE21EAFECFC529BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="1640506822976.png" alt="1640506822976.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Second problem is that do I have to disconnect database everytime an event happened then trigger the use of database? Or I could simply connect to database until the whole simulation has completed then disconnect from database. Thank you!&lt;/P&gt;
 &lt;P&gt;Attached is my model and db.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/47316-test-db.fsm" target="_blank"&gt;test db.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/47324-db.7z" target="_blank"&gt;DB.7z&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Dec 2021 08:57:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524265#M34493</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2021-12-26T08:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524266#M34494</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You don't pass parameters into the prepareStatement function like that - you use a single sql statement with parameters that are bound seperately. So in this case you need a second bound parameter called EQName.&lt;/P&gt;&lt;P&gt;If you're not executing the statement multiple times, I question the value of using a prepared statement, other than it handling parameter data types for you.&lt;/P&gt;&lt;P&gt;You should not need to keep connecting and disconnecting - but you might want to check the connections is open each time and connect if it is not.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Dec 2021 11:35:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524266#M34494</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-12-28T11:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524267#M34495</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; Thank you for the reply. But I couldn't understand why a second parameter is &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;needed. I thought I have used a parameter "A" that represent EQName.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;Also, I use prepared statement because the manual says that Database.PreparedStatement is a class for execution and manipulation of sql statement, so I use it to change db cell value. Or what should I use to update db cell value?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Dec 2021 12:55:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524267#M34495</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2021-12-28T12:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524268#M34496</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You can just use the &lt;A href="https://docs.flexsim.com/en/22.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Database/Database.Connection.html#Method-query"&gt;query() method&lt;/A&gt; of the connection and pass in an SQL UPDATE statement.&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Dec 2021 18:02:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524268#M34496</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-12-28T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524269#M34497</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It looks to me like you are trying to use features of Table.query() in a database connection. In Table.query(), you bind parameter values directly in the statement, and placeholders are specified with $1, $2, etc. Table.query() accepts the text and any parameter values.&lt;/P&gt;&lt;P&gt;Database.Connection.prepareStatement() only accepts one argument, which is the text of the query. Placeholders need to be specified with the correct syntax. Our database connector connects with SQLite through SQLAPI++, which expects :1, :2, etc, rather than $1, $2. &lt;/P&gt;&lt;P&gt;So your statement should probably look like this:&lt;/P&gt;&lt;PRE&gt;var stmt = con.prepareStatement("UPDATE EQTable SET Status = :1 WHERE EQName = :2");
stmt.bindParam(1, 1, Database.DataType.Int); // bind :1
stmt.bindParam(2, token.EQ, Database.DataType.String); // bind :2
stmt.execute();&lt;/PRE&gt;&lt;P&gt;In general, it is better to avoid communication with a database during a model run, just because it is slow. Usually, customers follow a pattern like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;On Reset, open the connection, read in any input data, close the connection&lt;/LI&gt;&lt;LI&gt;Run the model to some stop time&lt;/LI&gt;&lt;LI&gt;At the stop time, open the connection, dump all data, and close the connection&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you need to communicate during the model run, then I recommend leaving the connection open. You'd get two advantages:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You won't disconnect and reconnect during the run, which will be faster, and&lt;/LI&gt;&lt;LI&gt;If you use the prepareStatement() method, each unique statement will only be prepared once. Calling it again on identical text will just give back the previous result.&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Dec 2021 18:55:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524269#M34497</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2021-12-28T18:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524270#M34498</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It's fine to use prepared statements on one-time queries. SQL engines prepare the statement internally anyways, and then just return the result. So if the user wants to use two lines of code instead of one, that's no problem.&lt;/P&gt;&lt;PRE&gt;string stmtText = "SELECT stuff FROM someTable";
// good
var result = con.query(stmtText); 

// also good
var stmt = con.prepareStatement(stmtText);
var result = stmt.execute(); &lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Dec 2021 18:59:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524270#M34498</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2021-12-28T18:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524271#M34499</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Then what's the purpose of the query() method?&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Dec 2021 10:25:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524271#M34499</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-12-29T10:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524272#M34500</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/220/jordan.j.html" nodeid="220"&gt;@Jordan Johnson&lt;/A&gt; Thank you for your detailed reply. I still have some problem with how to export to db. The sql statement in Database.PreparedStatement, as there are not many examples I could imitate. I follwed how I succeed export whole GlobalTable5 to db.&lt;/P&gt;
 &lt;P&gt;But the tablename behind INSERT INTO should be db table name, and follow the globalTable column header. behind the sql statement VALUES is the &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;db&lt;/SPAN&gt; table&lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; column header.&lt;/SPAN&gt; This is my understand, but the exception keep exists, I also change the value opposite. Could you help me figure out what mistake I made?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1641217913951.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508528i83CBAF69E1CB7331/image-size/large?v=v2&amp;amp;px=999" role="button" title="1641217913951.png" alt="1641217913951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/47413-test-db.fsm" target="_blank"&gt;test db.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/47390-db0103.7z" target="_blank"&gt;db0103.7z&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jan 2022 14:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524272#M34500</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2022-01-03T14:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524273#M34501</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;It's EQName not EQNames in your database table&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jan 2022 14:18:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524273#M34501</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-01-03T14:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524274#M34502</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; is correct. Your global table has a column called EQNames, but the name of the column in the database is EQName (no s on the end).&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jan 2022 17:20:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524274#M34502</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2022-01-03T17:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524275#M34503</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello&lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/220/jordan.j.html" nodeid="220"&gt;@Jordan Johnson&lt;/A&gt; &lt;/P&gt;
 &lt;P&gt;I feel sorry for couldn't solve this issue. I think I've checked connection &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;is succeeded. And I have checked the data type defined in database table. I think these things should be no problem. I still cannot insert value through prepareStatement.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1641300926278.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508529iB62029D9AC9A1BD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="1641300926278.png" alt="1641300926278.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Jan 2022 13:03:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524275#M34503</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2022-01-04T13:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524276#M34504</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;What error message are you getting?&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Jan 2022 13:12:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524276#M34504</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-01-04T13:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524277#M34505</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; There's no error message now. I feel like the problem come from syntax error in sql part. &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Jan 2022 14:44:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524277#M34505</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2022-01-04T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524278#M34506</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You don't show an execute of the statement in the graphic. You need that:&lt;/P&gt;&lt;PRE&gt;statement1.execute();&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Jan 2022 15:10:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524278#M34506</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-01-04T15:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524279#M34507</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/30618/shanicec.html" nodeid="30618"&gt;@Fiona C&lt;/A&gt;, was one of Jordan Johnson's or Jason Lightfoot's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Jan 2022 02:53:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524279#M34507</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2022-01-07T02:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524280#M34508</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; I really missed that. The EQName column can't be written correctly, it shows "no path". Could I use Database.DataType.VarChar for pointer data type in a cell?&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1641687142919.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508531i0BF6FA2B14517970/image-size/large?v=v2&amp;amp;px=999" role="button" title="1641687142919.png" alt="1641687142919.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 09 Jan 2022 00:26:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524280#M34508</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2022-01-09T00:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524281#M34509</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Try using the name property or &lt;A href="https://docs.flexsim.com/en/22.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Method-getPath"&gt;getPath &lt;/A&gt;method. If you want it shown just as the table in FlexSim that would be:&lt;/P&gt;&lt;PRE&gt;EQT&lt;I&gt;["EQNames"].getPath(model(),1)&lt;/I&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 09 Jan 2022 08:24:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524281#M34509</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-01-09T08:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database Table cell value Problem</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524282#M34510</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; Thank you for your help! I could write cell value into database table now.
&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Jan 2022 10:55:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-database-table-cell-value-problem/m-p/13524282#M34510</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2022-01-10T10:55:14Z</dc:date>
    </item>
  </channel>
</rss>

