Forum Discussion

jeromecha's avatar
jeromecha
Creator I
6 years ago

How to refresh a form after a applySQL

Hello,

I want to handling the minor_revision with a plus '+'  beside the field minor_rev. 

I used the code of the add-on  Adding-Minor-Revision-Handling

The end of the code is : 

........

String itemTypeTable = thisItemType.Replace(" ","_");
String SQL = "UPDATE [" + itemTypeTable + "] SET ";
SQL += "[" + itemTypeTable + "].minor_rev='" + newMinorRev + "'";
SQL += " WHERE [" + itemTypeTable + "].id='" + newVerItem.getID() + "'";

Item res = inn.applySQL(SQL);

return this;

The value of the minor rev is update in the database but not on the screen. I need to save the Item (document) to have the new value of the minor_rev field in the screen

How can I update the form (the screen) to have the right value of the field after a  inn.applySQL ? 

10 Replies

  • Good day.  I saw this post from last year, Refresh Content Item, that provided a possible answer.  Christopher Gillis mentions that there is a line that can be used inside of your code that should refresh the page. 

    aras.uiReShowItem(itemId, itemId);

    He added this note with it.

    Note that you'll need to replace itemId in the function code provided with the actual ID of the parent item.

    • Former Member's avatar
      Former Member
      Not applicable

      Online shopping and e-commerce have set their foot in the upsers market. Rendering their services nationally and internationally, the United Parcel Services (UPS) is flourishing day by day.

  • With your focus in the Query window, select Edit --> IntelliSense --> Refresh Local Cache. 2. With your focus in the Query window, press Ctrl+Shift+R. This will refresh your cache and now your query will be happy with you

  • Immediately updates the records in the underlying record source for a specified form or datasheet to reflect changes made to the data by you and other users in a multiuser environment.

  • You and I both agree. This article is really motivating. I like your article, and everything you provide with us is up to date and quite educational. I want to save this website so I can come back and tell you how well you did your work. usps tracking number