|
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....
|
|
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.
|
|
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.
|
Ask your Facebook Friends
|
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.
|
|
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:
...
|
|
On Wed, 8 Apr 2009 09:21:02 -0700, hughess7 <hughess7@discussions.microsoft.com
Hi all
I am trying to create a set of data on a form by way of a recordset. The
user enters a Country and a dealer (in unbound combos) and I want the data
displayed...
Started by hughess7 on
, 13 posts
by 3 people.
Answer Snippets (Read the full thread at omgili):
I've changed it slightly so my code
returns a record count to check there is data creating....
Data " & txtCountry
strSql = "SELECT MyTable.* FROM MyTable "
strWhere = "MyTable.Dealer_Code there i think thanks :-).
|
|
On Tue, 14 Apr 2009 02:06:01 -0700, hughess7 <hughess7@discussions.microsoft.com
Hi thanks for this. Strange thing... before Easter I'm sure my code was
working and now I get a runtime error 3078 - The microsoft jet database
engine cannot find...
Started by hughess7 on
, 4 posts
by 2 people.
Answer Snippets (Read the full thread at omgili):
Yes Dealer
Code is a text field as some dealers start with a 0 (and some customers have
....
Vinson [MVP] On Tue, 14 Apr 2009 it when I am back at work tomorrow .
Is Dealer_Code a Text field?
--
John W.
Actual code.
|
|
Initially, I used a .js file that contains AJAX functions to call a .php file. The .php file contains code to dynamically populate a DropDown based on certain parameters passed via QueryString.
Everything works fine with the above method. But now I want...
Started by RPK on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
", { param1: "divMemberOf", param2: "inMemberOf", param3: "categorymaster" }, function(data) { $('#myDivID').html(data); }
);
You either need to add a callback function, or the .load method might are creating a request like this:....
|
|
I want to do an HTTP POST that looks like an HMTL form posted from a browser. Specifically, post some text fields and a file field.
Posting text fields is straightforward, there's an example right there in the net/http rdocs, but I can't figure out how...
Started by kch on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
And that's it! Simple, right? Here's the codeOk, here's a simple example using ... .
Form_post = true c.http_post(post_data) # print response y [c.response_code, c.body_str]
Posting returns the data and headers that you need to send.
|
|
I'm struggling to create a generic (or untyped) array in C (I'm aware that C++ makes this easier). In a nutshell I want to allocate an array to hold an array of a specific known type (at runtime). In the real implementation it depends on user input.
I...
Started by Dr. Person Person II on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Could do is add a cast
fValue = ((float*)ga.storage)[idx];
I'd recommend creating some macros.
|