GaryZ
asked on
R5 Frames - Referencing a field in another frame set
In R5 I have 2 frames (top bottom).
The bottom frame has a formula to add 1 to a counter, and then does a Refresh on the top frame.
What I need to do is have the top frame know what the new value of this counter is. So, either I have to be able to add 1 to the counter in the top frame, or pass the value back to the top frame.
The bottom frame has a formula to add 1 to a counter, and then does a Refresh on the top frame.
What I need to do is have the top frame know what the new value of this counter is. So, either I have to be able to add 1 to the counter in the top frame, or pass the value back to the top frame.
ASKER
Not working for some reason. On the inital load of the frameset I set the counter to 0 in the top frame and to 1 in the bottom, onLoad shows 0 and when the counter is updated in the bottom frame the top frame is stil showing 0.
ASKER
Ah, I think the problem is that the top frame is not being refreshed, I do have the value changing on the initial load.
I have the following code in the button to refresh:
FIELD F6_ShowSection := F6_ShowSection + 1;
@If(F6_ShowSection > F6_MaxSections; @SetField(F6_ShowSection;F 6_MaxSecti ons);"");
@SetTargetFrame("Top");
@Command([FileSave]);
@Command([ViewRefreshField s])
I have the following code in the button to refresh:
FIELD F6_ShowSection := F6_ShowSection + 1;
@If(F6_ShowSection > F6_MaxSections; @SetField(F6_ShowSection;F
@SetTargetFrame("Top");
@Command([FileSave]);
@Command([ViewRefreshField
That is right you have to refresh( and you menioned that in the question) the top frame and if you include the JS code whic I posted in onload event will always refer to the frame 2 counter.
~Hemanth
~Hemanth
That is right you have to refresh( and you menioned that in the question) the top frame and if you include the JS code whic I posted in onload event will always refer to the frame 2 counter.
~Hemanth
~Hemanth
ASKER
Something is not correct.
1. Notes is not refreshing the top frame, if I refresh using the browser button, then the field is refreshed from the bottom frame.
2. For some reason, the "hide-whens" no longer work. At first I had the default value set to the value of the field, and nothing displayed (all hidden). I then changed the default vaue to 1, and the first section displays. When I refresh the complete screen (using the browser refresh button), the counter changes to 2 (from bottom frame), however, the first section still displays, not Section 2.
1. Notes is not refreshing the top frame, if I refresh using the browser button, then the field is refreshed from the bottom frame.
2. For some reason, the "hide-whens" no longer work. At first I had the default value set to the value of the field, and nothing displayed (all hidden). I then changed the default vaue to 1, and the first section displays. When I refresh the complete screen (using the browser refresh button), the counter changes to 2 (from bottom frame), however, the first section still displays, not Section 2.
Just open the form in a browser and test , then see what happens without frameset
ASKER
The frameset being refreshed is the bottom one not the top. I put a "hide-when" in the bottom frame based on the counter and that is working.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
When I click on the hotspot, I get a third frame that looks the same as the bottom frame.
ASKER
The "bottom" frame has a counter (F6_ShowSection) that gets incremented when a hotspot is clicked.
The counter has the following code in the onClick event:
parent.frames["top"].docum ent.forms[ 0].F5_Show Section.va lue=docume nt.forms[0 ].F6_ShowS ection.val ue
The hotspot is updating the counter and not creating a new frame.
The "top" frame has the counter (F5_ShowSection), but the value is not being passed to the top, I am assuming I need to get the top frame to refresh to get the value.
The counter has the following code in the onClick event:
parent.frames["top"].docum
The hotspot is updating the counter and not creating a new frame.
The "top" frame has the counter (F5_ShowSection), but the value is not being passed to the top, I am assuming I need to get the top frame to refresh to get the value.
If you refresh the frame, the values will be lost, but if you pass that as the source to the frame then it is retained and aswell it is refreshed.
If you want I can take a look at your db and apply the functionality. Because i have done this sometime ago and is working well.
mailto:Hemanthakumark@bigf oot.com
~Hemanth
If you want I can take a look at your db and apply the functionality. Because i have done this sometime ago and is working well.
mailto:Hemanthakumark@bigf
~Hemanth
onLoad="parent.frames[0].d
~Hemanth