[CLOSED] Window AutoLoad Params

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Window AutoLoad Params

    Hello,

    I am trying to get the value of a textbox passed as part of the URL for my AutoLoad within a Window control but it doesn't seem to be able to read the value from the textbox. There is definitely text in the textbox and doing the same #{CodeTable}.getValue() statement on a button click elsewhere on the page does display the correct text:

    <ext:Window ID="CodeWindow" runat="server" Width="400" Height="500" Show&#111;nload="false"
        Modal="true" Constrain="true" Title="Select a code...">
        <AutoLoad Url="/Data/CodeTable/" Mode="IFrame" TriggerEvent="show" ReloadOnEvent="true"
            ShowMask="true" MaskMsg="Loading code table...">
            <Params>
                <ext:Parameter Name="table" Value="#{CodeTable}.getValue()" Mode="Value" />
            </Params>
        </AutoLoad>
    </ext:Window>
    I have tried both Mode="Raw" and Mode="Value" with no luck.

    Any pointers please?

  2. #2

    RE: [CLOSED] Window AutoLoad Params

    Any updates/ideas on this? Same problem here...
  3. #3

    RE: [CLOSED] Window AutoLoad Params

    I reorganised/refactored my code in the end and it is now doing what I wanted, I never solved my original problem though.
  4. #4

    RE: [CLOSED] Window AutoLoad Params

    it is strange - I am just trying to get the value of a hiddenfield into my autoload param - nothing seems to be working...
  5. #5

    RE: [CLOSED] Window AutoLoad Params

    the below produces a querystring of: ID="hdnIterationID.getValue()"

    <Params>
        <ext:Parameter Name="ID" Value="#{hdnIterationID}.getValue()" Mode="Value" />
    </Params>
  6. #6

    RE: [CLOSED] Window AutoLoad Params

    Just change Mode="Value" to Mode="Raw" and it should work.

    Example

    <Params>
        <ext:Parameter Name="ID" Value="#{hdnIterationID}.getValue()" Mode="Raw" />
    </Params>
    Geoffrey McGill
    Founder
  7. #7

    RE: [CLOSED] Window AutoLoad Params

    Does anyone have an update on this?

    I have come to needing to do it again and it still won't work.


    My code is pretty much as demonstrated in my original post except with Mode="Raw".
  8. #8

    RE: [CLOSED] Window AutoLoad Params

    Hi rcaunt,

    In order to get this to work (currently), you need to wrap the Value in a function(){}.

    Example

    <Params>
        <ext:Parameter Name="table" Value="function () { return #{CodeTable}.getValue(); }" Mode="Raw" />
    </Params>
    This is not an ideal solution, but we are looking into other providing other syntax options.

    Hope this helps.

    Geoffrey McGill
    Founder
  9. #9

    RE: [CLOSED] Window AutoLoad Params

    Thanks for the reply, I will give that a go!
  10. #10

    RE: [CLOSED] Window AutoLoad Params

    Hi Geoffrey,

    I passed this code on to a colleague of mine who has had a go and cannot make it work.


    He has also taken the latest SVN build and the Sandbox example unser Window\Simple.aspx and cannot make it work. It still passes the literal value of the Value field and doesn't process it as a function returning the value of the TextField.
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] How to pass a value from js script to autoload params?
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 09, 2012, 8:25 PM
  2. [CLOSED] [1.0] Update AutoLoad Params
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 07, 2010, 10:45 AM
  3. Replies: 2
    Last Post: Jun 25, 2009, 5:06 PM
  4. Autoload.Params bug
    By Kaido in forum 1.x Help
    Replies: 1
    Last Post: Jun 16, 2009, 4:57 PM
  5. Autoload params ???
    By heysol in forum 1.x Help
    Replies: 2
    Last Post: Apr 02, 2009, 1:24 PM

Posting Permissions