Question

DefriefReview Screen TechSignature ID

  • 28 February 2023
  • 2 replies
  • 51 views

Badge +4

 

HI ,

FSM mobile - We are using FSM 6.21 Version and New Debrief Review screen we are using in mobile

Whenever Updating/Inserting the task signature id through Client Script TECH_SIGNATURE_ID is updating as negative values and syncing takes long time Need  Suggestion. Thank you

 

@Saranga Amaraweera 


2 replies

Userlevel 6
Badge +26

Hey @sarahk 

Have you found a solution?

Having the ID as a negative number is a baseline behviour. The record will reach the server and then will get a permanent ID.

You can try  using

var primaryKey = generatePrimaryKey('YOUR_OBJECT');
setControlValue("YOUR_OBJECT", "YOUR_OBJECT_KEY", primaryKey);

Regarding slowness it depends on many parameters. Among other:

  • The load on the servers
  • The connectivity of the mobile client
  • Sync interval
  • and more…

Cheers!

Userlevel 3
Badge +6

Hi @sarahk ,

As @Shneor Cheshin mentioned, the -7 value in the update_task message you are showing is expected.  That message should be in the Waiting queue until the separate attachment message that inserts the signature gets uploaded.  The response from the server after the attachment is inserted will contain the actual attachment_id for the signature, which will then replace the -7 value in tech_signature_id before mobile uploads the task update.

Reply