We have created a Custom List template programmatically using Feature.xml, Element.xml, Schema.xml AllItems.aspx, and 3 aspx forms. We have a code behind file for each of these aspx files. i.e. for the AllItems.aspx, DispForm.aspx, EditForm.aspx and NewForm.aspx.
Problematic file is AllItems.aspx. In the code behind for AllItems.aspx fi...
In my web app I need to give the user the option to save a js variable as a file (when the user clicks download, the app offers him to save a file, preffereably as .js file).
Similarly as google docs offers you to save a file.
Is it possible for javascript to pass it's variable this way?
...
I have a PDF reader that displays pages of the document. What I want to do is allow the user to draw over the PDF in a transparent view. Then I want to save the drawing (UIImage) to disk. If at all possible, I don't want to have the documents folder filled with files like documentName_page01.png, documentName_page02.png for every page t...
I have a model called a voip_phone that has a an attribute schedule which is a string that keeps track of which people are using the phone at what time. Here's an example of a schedule:
"mon{}sun{}sat{}tue{13,08:45,15:15;}wed{13,09:00,17:30;}thu{}fri{}"
Here is the model code that won't work:
def add_shift(days, person_id, time_f...
Any idea why
//should save the object context.
NSError *error;
if (![managedObjectContext save:&error]) {
NSLog(@"SAVE ERROR");
}
when implemented in a view controller(accessed via a drill down tableview) won't properly save the information? I am passing the moc from the beginning (rootview hands off to tableview, tableview r...
I am creating a few JAX-WS endpoints, for which I want to save the received and sent messages for later inspection. To do this, I am planning to save the messages (XML files) into filesystem, in some sensible hierarchy. There will be hundreds, even thousands of files per day. I also need to store metadata for each file.
I am consider...
What is the easiest way to save UIView's representation to file?
My solution is,
UIGraphicsBeginImageContext(someView.frame.size);
[someView drawRect:someView.frame];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSString* pathToCreate = @"sample.png";
NSData *imageData = [NSData dat...
My question is to look for design solution for pause/resume states (including all data info, which need save ) during cocos2d game.
Including following cases, but not limited:
1). User choose quit, then pop out one dialog for user to choose " quit directly", " pause " ;
2). Someone call in , pop out dialog for user to choose "quit " o...
I am creating a new web service for an application and am currently designing the web methods for each service. I have noticed that there is no real different in my case between create and save except that save requires an ID and create does not.
The Java services API has both.
Is it a good practice to nix the create method and overlo...
i am working on saving on the same form two tables - having a m2m relation.
I don't succeed, my error persists with something like: Cannot set values on a ManyToManyField which specifies an intermediary model. Use Membership's Manager instead
where Membership is my 'through table'.
my code :
def save_classroom(request):
classroom_...
Hello,
I'm playing on my Android Nexus One some videos of a few cisco cameras using a VideoView. While this works fine, I'm unsure if it's possible to save the movie to a file.
I'm opening an URL like rtsp://192.168.1.22:554/live.sdp
How can I save it to the SDcard ? Handle it like a file maybe ... Is that possible ?
...
I was wondering if there was any way to automatically make an image, or any link save to the disk instead of open in the window.
wondering if there was any element i'm not using such as:
<a href="image.jpg" target="_hdd" />..</a>
of course this is pseudo-code in case anyone thought I was serious.
...
I have a button that uses jquery and ajax to call a server side script to create a text file and
sends back the following response
Response.ContentType = "csv";
Response.AddHeader("Content-disposition", "attachment; filename=" + fName);
Response.ContentType = "application/octet-stream";
Response.BinaryWrit...
There is model Ratification with attribute comment (of type text)
def Ratification < ActiveRecord::Base
attr_accessor :add_comment
def add_comment=(text)
self.comment ||= ""
self.comment << "\r\n" + text
end
end
And if I use add_comment= it is ok before I save the object. After save comment changes was dropped.
>> r = R...
I'm not sure how to fix this issue, but when I utilize combo boxes on my form which selects data from multiple tables I'm not able to save any of the data selected.
I tried to use the Bound form utility but it only asked me to "Enter Parameter Value". I took out the "Bound" portion of the code and the combo box works fine.
I have ...
Hi guys, how do i do a HTTPRequest and then save the File locally into the iPad/iPhone.
Im working with the simulator right now so is it possible to emulate the local data storage?
...
I've a php web page with a form. After filling the form in web page, I can submit it to the server. But after that, if I refresh the page, it inserts the same record to the database. Is there any solutions to this problem?
...
What's the easiest way to save a bitmap (I have an HBITMAP handle) to a TIFF file using unmanaged Win32?
It would be trivial using GDI+, but I'm limited to GDI. Thanks in advance!
...
So I have some server broadcasting live data onto Named Pipe - \\.\pipe\TestChannel (from VLC for example). I want to read it from now some N seconds and save that readen data to some.file. How to do such thing using C# .Net3.5? (and BTW I wonder about if it is easier to do it from .net4) Could you please provide some simple code exampl...
How could I populate a table in my iPhone app from select photos from the photo library? Should I save them to a folder local to the application, and how?
...