Questions tagged [saving-data]

322 questions
2
votes
2 answers

CakePHP 3.x - Saving associated data across multiple tables

I'm having an issue with trying to get data saved in associated tables (currently when I save it only saves in the initial table, but not the others). So my first table (Users): -id -username -password -email Second table (Artists): -name -cp_id…
mistaq
  • 375
  • 1
  • 6
  • 26
2
votes
0 answers

saving user generated image using HTML/JS

I want to save and an image that is user generated, and I can't use anything other than HTML an JavaScript. Is there a way to do it? Any help is appreciated.
2
votes
1 answer

how to start camera intent and save a non-compressed picture

I am a very young self taught developer and I'm working on my first major project, which requires to start a camera intent once pressed, save the image that the user took and display it in a custom dialog. I got it to work, but i stored the returned…
user3469274
2
votes
1 answer

how to save native text input to a txt file in corona

my question is how to save a user text input to a .txt file in corona sdk. So basically what I want to achieve is that when a user writes something into a text box and then presses the save button, the text from the textxbox saves to a .txt file…
2
votes
3 answers

NHibernate update reference

Entities We have an entity called Product which is loaded using NHibernate. Product has a category which NHibernate happily populates for me. Database In the database, Product has a foreign key for category. Scenario User edits this Product (via a…
Jon Hilton
  • 173
  • 1
  • 15
2
votes
1 answer

Issue with relative path to database saving data

I am creating a bookingsystem but i ran in to a problem whith my database connections when i change from specific path to relative path for datasource, When i have a speciffic datasource it can update the database and add new items. But when i…
ccb3
  • 39
  • 6
2
votes
1 answer

Issue with cPickle

all. I'm currently trying to use cPickle to create a 'save_game' function for my Roguelike. save_game() pickles the game-state properly, but if I exit the game, the load_game() function flatly refuses to acknowledge that the pickled file exists when…
2
votes
1 answer

saving the model in a loop yii

I need to save the field value several times by separating them by commas. I am getting the values,but i need to store each value in model in a loop. $subModel->name = $_POST['Model']['keywords']; $keyword = explode(",", $subModel->name); for…
Developer
  • 3,307
  • 4
  • 35
  • 42
1
vote
2 answers

Show the highscore with shared preferences?

So I'm trying to save the highest score with sharedPreferences but I am running into trouble. I don't know how I would set it up to only take the highest score and display it. What I have now will only display the current score that the player…
alexward1230
  • 557
  • 3
  • 7
  • 21
1
vote
1 answer

saving variable to file and downloading it

I've got a problem with my previous question. Nobody can't help me so I'll try to write better this time what I want: I've got a generators#show view, and in this view I want to do everything without refreshing page after clicking a button…
lukaszkups
  • 4,855
  • 8
  • 41
  • 73
1
vote
3 answers

Storing a history list in objective c

I am doing a project to scan qr codes.a. In this project a history page is present in which i have to show the history of user's scans. It contains URLs only. So I am planning to show the list of urls he scanned previously in a table view. How can i…
iOS Developer
  • 1,713
  • 2
  • 16
  • 47
1
vote
3 answers

saving setText after closing JDialog

I'm having a JDialog that works as a "Settings Window". I Choose a Save-File-Path and I click a button named Save. It Stores the Path and displays it on a JTextField. My problem is when i close the JDialog called "Settings" and open it again the…
Handsken
  • 639
  • 9
  • 26
1
vote
2 answers

Saving VBA Dictionary object in Excel

As part of an Excel Workbook Template a Dictionary object (from the Scripting Runtime Library) is created and added to. Is it possible to save this in some way along with the Workbook such that it is available on starting up the Workbook, or should…
Alistair Collins
  • 2,150
  • 5
  • 24
  • 43
1
vote
1 answer

Core Data Managed Object Context Saving Problem

I am trying to save an array into core data using NSData but my ManagedObjectContext says there are 0 objects and when I call it, I have it appearing as NULL. I have an entity called Event and 3 attributes in it (chatArray,...,...). I have tried for…
1
vote
1 answer

Downloading and writing images from an array of urls crashing iPad

I am writing images to the directory of my app using the following code in a separate thread for (int j =0; j<[sorted count]; j++) { NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:[sorted objectAtIndex:j]]]; UIImage *image…
Wizard Of iOS
  • 2,369
  • 2
  • 16
  • 22