|
Hi,
I am working with a Drupal 6.x system to create exercise / personal training programmes, and am using the CCK with content types of Exercise and Programme, where Programme contains a few header fields and a list of node references to the exercises...
Started by Macros on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Module can generate sample code for creating a node (complete with CCK fields) programatically $node = stdClass(); object and populate the attributes with the correct data then perfrom a node_save node in code and call node....
|
|
One of the exercises in C++ Primer Plus is having me use fstream to open a txt file and input data into a structure then output it. First line of the txt file is the number of "donors". The problem I seem to be having is that (I think) when I use "inFile...
Started by scribbles on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I don't want to insult....
You are most certainly correct, I assume the code does not compile? You can just change the donors I be doing differently?
Well, if the code is based on what C++ Primer Plus has taught you - use a different text book.
|
|
While this is similar to other questions, I've been unable to figure this out, and I feel pretty dumb for not knowing how to do it.
1) I can't use the PostbackURL property for the button click.
Basically what I need to do is, when a user clicks a button...
Started by Jack Marchetti on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
But there....
To be from the client browser via JavaScript, through something like Response.Redirect, in which case) fields of the second form from code and submit it using javascript form.submit() on pageload (insert for non-technical users.
|
Ask your Facebook Friends
|
Take the following create table statement:
create table fruit { count int, name varchar(32), size float }
Instead of those specific data types, why not have "string", "number", "boolean" or better yet, not having to specify any data types at all.
What...
Answer Snippets (Read the full thread at stackoverflow):
Imagine 20 millions rows in a table to allocate more bytes for the data....
Imagine in constraints...can't store the letter A in an int...data will be clean..
It sets a strategy for sorting and indexing, as well as enforce data integrity.
|
|
Inspired by this thread, I finally decided to put together a seperate thread on this.
You can create an MDB Access database either with DAO or ADO. DAO is almost obselete now but some people still use it so I am including both the codes.
ADO
Set Reference...
Started by koolsid on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at com):
Nothing I have....
The data base I have was downloaded views and stored procedures:
Code: With cnDB .Execute "CREATE TABLE Fruits (" _ & "FruitID IDENTITY images.
I get a lot of errors when coping to my code as well.
For images.
|
|
So I'm starting out with EF on my website (C#) and Ive run into a bit of a snag. A user can either create or modify data and they will do that with the selection screen (page 1). If a user selects to create new data, I will perform the following code:...
Started by dangerisgo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
One thing that you do not show in your code is how:
Program.
NewProg.Items.Add(selectedItem is that the entity already has a primary key .
code snippet shows you adding the Entity:
...
|
|
Hi! I'm currently writing a web software which is also going to be used by Client desktops via an API. The problem I'm facing right now is: Should I implement every action of adding/updating/deleting objects in the application twice? Once as it sits in...
Started by Sebastian Hoitz on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Your code exists in exactly one place -- the web validator objects to just plug in after....
Opening it up to the end-user, and also using it for the client code as well, with some extra hooks receives the REST requests and does the real work.
|
|
If I were to have 2 tables, call them TableA and TableB. TableB contains a foreign key which refers to TableA. I now need to add data to both TableA and TableB for a given scenario. To do this I first have to insert data in TableA then find and retrieve...
Started by Draco on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In case you're performing the insert from code, you may have higher level structures manual inserts, using the stored procedure....
creating a stored procedure that takes all of the data as parameters, then performs the insert solution.
|
|
I'm creating opendirectory via commandline and all seems functional - email, wiki, home directories accessible via smb, etc. but these users do not show up in server.app or workgroup manager. why is that? what am i missing? i haven't been able to pinpoint...
Started by dhylton on
, 11 posts
by 3 people.
Answer Snippets (Read the full thread at macworld):
#!/usr/bin/env bash
#set to replicate settings from another user created via server.app - group memberships, unique ids, etc-the....
Differently when created via gui than is possible when creating via commandline.
|
|
My models produce a lot of values for attributes which the user can not specify in any forms.
Should I be specifying validations for those attributes to prevent any of my model logic creating dodgy values or is that something I should just check for in...
Started by adam on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You should always test, well, usually....
Ex: if an attribute requires the data it accepts falls between a range of 1..10 then you probably want to validate that the data set for that attribute meets those requirements.
Should be validated.
|