POST
|
So I implimented the code and it worked like a charm, but I changed the code just a little to shorten it up. I also applied it to the intermediate directions as well so I changed the right command to 2 rather than one. I just had to make sure I went back to the radiobuttons and rename the cardinal directions rbtNO, rbtSO, rbtEA, rbtWE to match up with the control names. Sub rbt_OnClick() Dim rbt Set rbt = ThisEvent.Object Dim pControl For Each pControl in rbt.Parent.Controls If pControl.Type = "LABEL" Or pControl.Type = "EDIT" Or pControl.Type = "DOMAINFIELD" Then If Right(pControl.Name, 2) = Right(rbt.Name, 2) Then pControl.Visible = True Else pControl.Visible = False End If End If Next Set pControl = Nothing End Sub Thanks for all the help, my survey crew loves the new form design.
... View more
01-25-2011
09:13 AM
|
0
|
0
|
425
|
POST
|
Wonderful, I was on the right track with what I was doing. Thank you so much.
... View more
01-25-2011
04:59 AM
|
0
|
0
|
425
|
POST
|
Hey Kyle, the first step that you have to take to build a form is creating an AXF. While doing that, you will also generate the APM (ArcPad Map) file that will be seen on the data collector. This link does a good job of showing how to create them and the reasons behind it. http://www.nd.gov/gis/images/gis-users-conf-2009/presentations/WSIIIA_Crissinger_Brandon.pdf That still leaves creating the form, so use ArcPad Studio to open the AXF you created and under Feature Layers you should have listed the dataset(s) that will be edited. If you doubleclick the dataset it will bring up the specifics for that dataset. If you doubleclick <EDITFORM>datasetname it will bring up the form view and you should be able to figure it out from there.
... View more
01-24-2011
06:23 AM
|
0
|
0
|
113
|
POST
|
If all the tabs will contain the same controls I would put all the controls on one page and have a script that sets the controls that belongs to a certain direction visible and the other to not visible. The same control will change the page caption to indicate the cardinal direction. Ex. at the top of your form you have 8 radiobuttons that are always visible indicating the directions and the on_click script for each of these radiobuttons will run another script that will make the correct controls visible. Rolf Thats a great idea Rolf, I have been trying to impliment that, but I cannot seem to get the onclick funtion right. If I am understanding your idea correctly, the onclick function should change where the input fields are pointing to in the database. Aside from not writing the script correctly, my concern with this is, how do I tell it to write the information to the database. I was thinking if I only used the onclick to remap the fields that the data would be erased without updating the database once they went to input the information on a different pipe. Would that be done on the onkillfocus function? I attached a SS of what that page of the form looks like at the moment.
... View more
01-24-2011
05:59 AM
|
0
|
0
|
425
|
POST
|
Hey everyone, I am creating an ArcPad mobile application to collect information on catch basins. The city engineer informed me that he also wants to collect the pipe directions connected to the catch basins. My idea is, instead of having one tab for each of the cardinal and intermediary directions, to have eight checkboxes listing the directions (N, S, E, W, NE, NW, SE, SW) and the user picks which directions the pipes are traveling then the application only loads those tabs to enter the pipe information. Has anyone created or come across a script to do this or does anyone have any ideas on how to do this?
... View more
01-18-2011
04:52 AM
|
0
|
6
|
963
|
Online Status |
Offline
|
Date Last Visited |
02-23-2021
09:09 AM
|