|
Question regarding how to setup dbase relationships (newbie, this may be trivial)
Followed the django tutorial (Poll, Choices); understood that 1 Poll has many Choice(s), therefore many Choice(s) point to a single Poll.
class Poll(models.Model): question...
Started by jd on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Basically, you store both the type and id of the person/place object on the PhoneNumber object. .
Also here
check ContenType app, and specifically Generic Relations.
I think you're looking for Generic Relations.
|
|
I have the following (returning two separate result sets) being successfully executed from a proc but cannot do the same when executing this as a basic query.
SELECT * FROM persons; SELECT * FROM addresses;
Possible? What's the syntax?
EDIT:
I am using...
Started by Mario on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If the two queries aren't related, why would you want them together?
are you talking about from the mysql cli? works fine for... .
JOIN persons and addresses, and you can get a big result table, assuming addresses correlates to persons with some identifier .
|
|
What is considered the best way of enabling or disabling multiple controls in Silverlight at the same time (textbox, combobox, autocompletebox and the like)?
I suppose I could bind the "IsEnabled" property of each control to a boolean property. That property...
Started by Traples on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
All control-related data logic....
(Just to separate concerns)
Recently we had to reset all controls on the form and didn't want to loop through every single control .
Usually I always create a ControlHandler Class that does all the updates on my controls .
|
Ask your Facebook Friends
|
Hi,
I have multiple reports that take the same parameters.
Need to create a master report with all the reports merged together. I dont want to copy paste the rdlc files into one large file.
found a control by Telerik called ReportBook but it costs money...
Started by Yash on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It is a little complicated to....
Like you suggested, you can purchase the module from Telerik, or another company - or - you could write something that will handle this for you .
The functionality doesn't exist in the base Microsoft Report Viewer control .
|
|
Hi,
I have a python script, which is executing again 4-5 python scripts. For performance reasons i want to use same interpreter for executing all the script.
Is it Possible to do that, if yes please help me out.
Thanks
Kamal
Started by Kamal on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The obvious solution (which may require a little tweaking) is to... .
You can just pass that explicitly to subprocess.Popen as the first argument, or pass it as the 'executable' argument .
The currently executing interpreter is available in sys.executable.
|
|
In flex, I want to return multiple tokens for one match of a regular expression. Is there a way to do this?
Started by Ebu on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Why'd you want that? As an....
You test for a match with one pattern at a time so that's probably out of scope .
As for GNU flex, I don't think you can do that .
Do you mean all matches? Are you using regex functions or string functions? Use the global flag .
|
|
Can anybody recommend some quality ASP.NET hosting providers that allow you to multiple domains without making you use a "reseller" account or purchase multiple accounts. I really only need email accounts for one of the domains.
I'm looking for something...
Started by tyndall on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Mosso; their basic plan is $100, I think, and you can create unlimited ASP, ASP.NET, PHP, Perl, and RoR sites on their cloud. .
I use Godaddy And the second tier hosting allows you to host multiple domains .
|
|
I'm trying to create a WSTransfer implementation (I realise Roman Kiss has written one already for WCF - but it doesn't actually meet the specifications)
I've ended up abandoning data contracts on the service contacts because WSTransfer is loosely coupled...
Started by blowdart on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here is more info on how to do that:
http://msdn.microsoft.com/en-us/library/ms733901....
In a case like this when you need precise control over the XML output, you should use the the XmlSerializer instead of DataContract or MessageContract serialization .
|
|
I have a project where there are multiple applications that have some common configuration values. I would like to have a shared .config file that is available to all of the applications using the .Net configuration object model. Each application would...
Started by E Brown on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Some sections in the app.config allow for a....
You can then override any value you need by putting it in the individual app config .
I would place value in the machine config.
Here's a discussion that addresses OpenExeConfiguration which may be helpful .
|
|
Hi, I am new bee to Hibernate and trying out things. One thing that seems to amuse all is how to connect to different databases? I have two questions here
a) if in the same web app i need to connect to mysql and oracle how do i do it?
b) i am using mysql...
Started by akellakarthik on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you are running in JBoss App Server, you can do it by using "Distributed Transaction Managers... .
Ideally you should move to Distributed transaction type of system[using Java Transaction Analyzer org.hibernate.transaction.JTATransactionFactory] in this case .
|