BLOG
|
Hi Zhifang, That was the problem - I have bulk replaced all single quotes with double and the reports are happy now Thank You for you prompt diagnosis. Steve
... View more
07-07-2020
05:06 PM
|
0
|
0
|
1405
|
POST
|
Hi Sarah, I have managed to attach the solution to my reply now - I was struggling with that yesterday. I have linked it here as well. https://community.esri.com/servlet/JiveServlet/download/223329-1-205569/SX_Test_Sig_FINAL.xlsx The key to getting it working is that the Feature Service for the main layer must have a field with _count at the end: Here is the schema for my main layer: Layer: SX_Test Fields: Name ( type: esriFieldTypeString , alias: Name , editable: true , nullable: true , length: 50 ) Location ( type: esriFieldTypeString , alias: Location , editable: true , nullable: true , length: 50 ) GlobalID ( type: esriFieldTypeGlobalID , alias: GlobalID , editable: false , nullable: false , length: 38 ) created_user ( type: esriFieldTypeString , alias: created_user , editable: false , nullable: true , length: 255 ) created_date ( type: esriFieldTypeDate , alias: created_date , editable: false , nullable: true , length: 8 ) last_edited_user ( type: esriFieldTypeString , alias: last_edited_user , editable: false , nullable: true , length: 255 ) last_edited_date ( type: esriFieldTypeDate , alias: last_edited_date , editable: false , nullable: true , length: 8 ) OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID , editable: false , nullable: false ) SignNow ( type: esriFieldTypeString , alias: SignNow , editable: true , nullable: true , length: 500 ) SX_Test_Actions_count ( type: esriFieldTypeString , alias: SX_Test_Actions_count , editable: true , nullable: true , length: 500 ) #It kept saying my field length was too short 500 is probably too big ☺ The layer for the attachments (signatures) is: Layer: SX_Test_Actions Fields: parentGlobalID ( type: esriFieldTypeGUID , alias: parentGlobalID , editable: true , nullable: true , length: 38 ) ActionName ( type: esriFieldTypeString , alias: ActionName , editable: true , nullable: true , length: 50 ) GlobalID ( type: esriFieldTypeGlobalID , alias: GlobalID , editable: false , nullable: false , length: 38 ) created_user ( type: esriFieldTypeString , alias: created_user , editable: false , nullable: true , length: 255 ) created_date ( type: esriFieldTypeDate , alias: created_date , editable: false , nullable: true , length: 8 ) last_edited_user ( type: esriFieldTypeString , alias: last_edited_user , editable: false , nullable: true , length: 255 ) last_edited_date ( type: esriFieldTypeDate , alias: last_edited_date , editable: false , nullable: true , length: 8 ) OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID , editable: false , nullable: false ) Email me at srichards@hnrg.com <mailto: srichards@hnrg.com > if you can’t download the file Steve
... View more
10-30-2018
12:36 PM
|
0
|
0
|
116
|
POST
|
Hi James, That did the trick, Thanks very much for your help. I will attach the final solution. Steve
... View more
10-29-2018
02:13 AM
|
0
|
2
|
116
|
POST
|
Hi James, Thanks for your response. The Feature Service does have a related table with attachments - this is for the signatures. I have republished the service and removed the periods. I can publish the survey and it works i.e Fill in the top part of the form Submit Retrieve from Inbox Sign Submit The signature saves as expected in the attached Feature Class - if you sign first time around it does not get retrieved from the inbox - this is documented and expected, I am not going to make the signature field available until it has been submitted once. As I am using a repeat to hold the signature - I want to limit the repeats to 1 so it only gets signed once. As soon as I try and limit the repeats to 1 then I get the publishing error Looks like this: Remove the repeat limit and publish Steve
... View more
10-25-2018
05:38 PM
|
0
|
4
|
116
|
POST
|
Hi, I have come up with what I think is a way to manage adding a signature to a survey once the survey has been submitted and retrieved through the Inbox. The Survey is set up to work against a submission_url to a feature class and related tables hosted in our SQl Database. I have put the signature inside a repeat and will use a function to make it visible at the right time - I am using a Yes/No select_one at the moment. This is working but of course the user is free to add as many signatures as they like, I really only want one. The solution I think is to put 1 in the repeat_count parameter, however when I publish the survey I am getting "The custom feature service submission_url is not compatible with this survey (Fields not found in the feature service: 1)" If I remove the 1 from the repeat_count then it publishes fine, I just potentially end up with multiple signatures Q1/ Am I on the right track? Q2/ Is this a bug? I may be able to implement using a count to make the repeat 'disappear' after one signature is entered but this feels like a work around. Survey Template Attached
... View more
10-24-2018
04:33 PM
|
1
|
6
|
383
|
POST
|
I think you have your answer but for what it's worth I had some issues trying to implement nested if statements, they worked in excel but not in the Survey. I actually found it useful for my brain (and to get it working) to break the problem down into separate 'calculate' lines, calculate is a special field type that does not display on the form it works just like a variable and can be used in the other calculations e.g type,name,label,calculation 1/ calculate,dia_diff,Diameter Difference,${sec_6_log_dia_meas_len}-${sec_6_log_dia_disp_len} 2/ note,sec_6_log_dia_diff,Measured Difference (mm),if(${dia_diff}<0,${dia_diff} * -1,${dia_diff}) 3/ calculate,dia_diff_score_low,Diameter Score < 400,if(${sec_6_log_dia_disp_len}<400,if(${sec_6_log_dia_diff}>25,0,3),3) 4/ calculate,dia_diff_score_high,Diameter Score >= 400,if(${sec_6_log_dia_disp_len}>=400,if(${sec_6_log_dia_diff}>50,0,3),3) 5/ integer,sec_6_log_score,Log Score,min(${len_diff_score},${dia_diff_score_low},${dia_diff_score_high}) The logic is: 1/ Calculate the difference between what is measured and what the machine displays 2/ Convert the measurement to an absolute value (ABV) 3/ If the log has a diameter under 400mm and the difference in measurement is >25mm this log scores a 0 4/ If the log has a diameter over 400mm and the difference in measurement is >50mm this log scores a 0 5/ The log score is the minimum of Length Score,Small Diameter Score or Large Diameter Score I left out the log length score calculations but they are similar to diameter I have attached the full survey if anyone wants to take a look - I have trimmed out a lot of the lookup data. Steve
... View more
03-26-2018
04:01 PM
|
0
|
0
|
125
|
POST
|
Hi, I have been able to replicate this issue. I generated a 650mb .tpk using ArcGIS Pro and loaded it onto Samsung Galaxy s2, it is rather slow to render when compared to the standard maps that come with Survey123. Steve
... View more
10-16-2017
07:13 PM
|
0
|
0
|
61
|
POST
|
Hi, Is it possible to have sequential numbering within one users survey; We are trying to emulate a pad of forms that are numbered sequentially and issued to a person; so Person 1 would be given a pad with forms numbered 1-100 , person 2 forms numbered 101-200 etc When the forms are returned they can be audited to ensure all have been completed simply by checking the sequence. So in Survey123 the use case would be along the lines of: Person1 goes into the field and completes surveys Survey 1 - Complete/Submitted Survey 2 - Complete/Submitted Survey 3 - Not Complete Survey 4 - Complete/Submitted How can the manager audit Person1 and discover Survey 3 has not been completed; if they had a sequential number then you could query the database and given Survey 4 is present there must have been a Survey3. If the sequence had to be unique to each tablet/person then username_Survey1 would be the unique key to the survey. Thanks Steve
... View more
09-26-2017
03:01 PM
|
0
|
1
|
64
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|