Hi,
I’ve got a DynamicForm bound on fetch operation to an URL used to retrieve form data.
autofetchdata is not set to true, I call explicitly fetchData() on my form but the URL is invoked twice instead of once.
Please find the corresponding code attached, the form is called “missionForm” and the datasource “missionsDS”
Here are the twor request as shown in developper console :
First one:
{
actionURL:"http://localhost:8080/mss/isomorphic/HttpProxy",
showPrompt:false,
prompt:"Finding records that match your criteria...",
transport:"xmlHttpRequest",
useSimpleHttp:true,
promptStyle:"dialog",
params:{
data:"<data xmlns:xsi=\"http://www.w3.org/2000/10/XMLSchema-instance\" xsi:type=\"xsd:Object\"><url>http://localhost:8887/createMission?templateMid=Template-2&description=s&alertTS=2009-02-17Z&alertMsg=Message%20sample%20updated&alertMmsi=1&alertStatus=Pending</url><httpMethod>GET</httpMethod><params xsi:type=\"xsd:Object\"></params><requestBody></requestBody></data>"
},
httpMethod:null,
contentType:null,
sendNoQueue:true,
isProxied:true,
callback:{
target:null,
methodName:"$37c"
},
willHandleError:true,
serverOutputAsString:true,
clientContext:{
requestIndex:1
},
data:null
}
Second one:
{
actionURL:"http://localhost:8080/mss/isomorphic/HttpProxy",
showPrompt:true,
transport:"xmlHttpRequest",
useSimpleHttp:true,
promptStyle:"dialog",
params:{
data:"<data xmlns:xsi=\"http://www.w3.org/2000/10/XMLSchema-instance\" xsi:type=\"xsd:Object\"><url>http://localhost:8887/createMission?templateMid=Template-2&description=s&alertTS=2009-02-17Z&alertMsg=Message%20sample%20updated&alertMmsi=1&alertStatus=Pending</url><httpMethod>GET</httpMethod><params></params><requestBody></requestBody></data>"
},
httpMethod:null,
contentType:null,
sendNoQueue:true,
isProxied:true,
callback:{
target:null,
methodName:"$37c"
},
serverOutputAsString:true,
data:null
}
The only difference seems to be the prompt dialog for criteria matching and that’s maybe the origin of the problem.
I tried to set showPrompt to false on my datasource but there are still two requests instead of one.
I saw another similar (“Multiple post …”) but in my case I’ve got no filtering and no autofetchdata set to true so do you have any idea ?
Thank you in advance,
Sébastien
createMission.html (8.19 KB)

