Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7994059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:02:15+00:00 2026-06-04T14:02:15+00:00

I have certain data saved in the local storage. The same has been saved

  • 0

I have certain data saved in the local storage. The same has been saved onto the store. What I require is to extract a particular item from the localstorage and display it. I am not sure how to do that.

For eg:

model.data.servname = servname;
model.data.port = port;
model.data.protocol = protocol;
model.data.username = username;
model.data.password = password;
model.data.domain = domain;
model.data.apptitle = apptitle;
model.data.appconfig = appconfig;
model.save();

var store = Ext.getStore('configStore'); // Get the store
store.add({servname : 'infoimage'}); // Add an instance of you model item
store.sync(); // Will add the item to the locastorage
var item = store.getAt(0); 

this part of my code saves the data onto the local storage and the store. Now, in my main controller:

init : function() {
  if (!this.landingoverlay) {
    this.landingoverlay = Ext.Viewport.add({
      xtype : 'landingPageOverlay'
    });
  }
  this.landingoverlay.show();
}

I want to display the apptitle value.

but

console.log(Ext.getCmp('apptitle').getValue());

does not work cause its not yet defined. But the value is there in the local storage. How do i access that value and display it here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:02:16+00:00Added an answer on June 4, 2026 at 2:02 pm

    To get data from your store which is configured to use a localstorage proxy:

    `Ext.getStore('configStore').load()`
    

    To iterate through your Store instances and print them:

    var store = Ext.getStore('configStore').
    store.each(function(record){
      console.log(record.get('the_name_of_field_you_want'));
    });
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of overloaded functions that operate on certain data types such
I have a code base that deals with simulation of certain data. It involves
We have a web application that gets its data from a certain database. The
I have a .csv file that contains data for only certain columns in a
Is it ok to have public data members in a C++ class/struct in certain
I have a static initialization block where I read data from DB into certain
I have an application written in Python. It collects and parses data from certain
I have a data entry form that has remote validation set up to check
I want to write a storage backend to store larger chunks of data. The
I have hierarchical ordered data saved using the modified preorder tree traversal algorithm. Here's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.