Sha256: 4699fcbcf680b972b8a3be4295d8ccd331809377e8c0c9149b1fec4b93f45ffd

Contents?: true

Size: 666 Bytes

Versions: 5

Compression:

Stored size: 666 Bytes

Contents

Rtml::actions_for :rtml do
  def get_state
    cache false
    expires_at { Time.at(0) }
    on :cancel => embedded_app

    screen :gather_data, :submit_err do
      build :submit, :tgt => url_for(params), :econn => "#submit_err", :cache => "deny" do
        [:datetime, :datetime_start, :itid, :model, :os, :part_number, :serial_number].each do |field|
          build :getvar, :name => "terminal.#{field}"
        end
      end
    end

    screen :submit_err do
      display <<-end_tml
        <br/><br/>
        Error initializing session state data. See logs for more details.<br/>
        <getvar name='err.baddata_reason' />
      end_tml
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 builtin/rtml_helpers/rtml/get_state.rb
rtml-2.0.3 builtin/rtml_helpers/rtml/get_state.rb
rtml-2.0.2 builtin/rtml_helpers/rtml/get_state.rb
rtml-2.0.1 builtin/rtml_helpers/rtml/get_state.rb
rtml-2.0.0.alpha.1 builtin/rtml_helpers/rtml/get_state.rb