I am trying to add a form to the AWS home page created for me by the ESP wizard. My software is NetOS 7.0a. I have an AWS application, to which I have added some dynamic text fields (rpTextDisplayItem) and a form. The text fields work great but the form gives me 404 Not Found when I submit.
Is there something special you need to do to activate a new form?
I have compared my new form implementation line by line with the one in network_config, and I think I have everything set up right. But when my browser sends:
POST /Forms/index_1 HTTP/1.1
(as shown on Ethereal) AWS returns 404 not found. The equivalent access for network-config,
POST /Forms/network_config_1 HTTP/1.1
works fine. As far as I can tell, the only difference is that network_config_1 was created by the wizard and index_1 was created by me. So I’m wondering if there is some extra thing you need to do to make an AWS form accessible after it’s defined.
Here are my definitions from index.c:
static rpItem Pgindex_Items[] = {
…
{ eRpItemType_FormHeader, (void *) &Pgindex_Form_1 },
rpObjectDescription Pgindex_Form_1 = {
“/Forms/index_1”,
Pgindex_Form_1_Items,
&Pgindex_Form_1_ObjectExtension,
(Unsigned32) 0,
kRpPageAccess_Unprotected,
eRpDataTypeForm,
eRpObjectTypeDynamic
};
static rpObjectExtension Pgindex_Form_1_ObjectExtension = {
PanelLeftPress,
&Pgindex,
(rpObjectDescriptionPtr) 0,
0,
kRpObjFlags_None,
(char *) Pgindex_Item_23
};
static char Pgindex_Item_23[] =
C_NAME “"left_form"”;
When I put a breakpoint in function PanelLeftPress, execution never hits it, but the equivalent breakpoint in function networkSubmit always works.
Thanks,
Larry