|
Iam sorry, iam a c# developer, so in the same thought process
i placed here. here afterwards, i will take care.
Thanks,
Krish
|
|
|
|
|
Not a problem
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Hi, I got a project where I need to filter the data from SAP by passing input values from .NET and bind that result with GRid.
Using VS2010, C#-Asp.net 4.0, SAPdotnetconnector3.0.
I am new to this So i need guidance
|
|
|
|
|
I'm sorry, but rather than you wasting your time waiting for an answer here, I'd suggest that you aren't going to get an answer here. Your best bet for an answer on this would be to search the support forums on SAP, and to try searching through Google.
|
|
|
|
|
Difficult to say without more info.
You'd probably need to get the info from SAP somehow (with the SAPdotnetconnector3.0 I assume), but you should check the documentation and/or sample code of that tool for more info. It could push the info or it could pull the info.
If you finally receive the info you can build "object classes" of the info you received and bind the properties of those classes (which you put in collections) to the grid.
You'll need to be more specific and give more specific problems if you want an answer. If I would answer this one best I could I'd need to research several hours or longer and write quite a lot of text.
|
|
|
|
|
Hi All,
I have an "Acount" and my Acount has multiple "users" .
And my user have three settings like App,Web,Key
So we have to write XML on this behalf of tree.
Structure like -
Acount
User1
Acount Setting
web
App
Key
User2
Acount Setting
web
App
Key
I have create XML like same as structure.
|
|
|
|
|
Have a look at the XmlDocument class here[^].
Basically you'd create a XmlDocument object and add XmlElement [^] instances.
For example:
XmlDocument document = new XmlDocument();
XmlElement root = document.CreateElement("Account");
root.SetAttribute("SomeAttribute", "42");
document.AppendChild(root);
XmlElement child = document.CreateElement("User1");
root.AppendChild(child);
XmlELement grandchild = document.CreateElement("AccountSetting");
child.AppendChild(grandchild);
document.Save(pathToMyXmlFile);
2A
|
|
|
|
|
Markovl's suggestion is good and I use it for small amounts of data. For large amounts of data I tend to use an XmlWriter -- I keep thinking of writing something about it.
|
|
|
|
|
Hi
I used Moles to replace the method but not able to send a ReturnCode of 0 since it is a Read Only Property
MLdapConnection.AllInstances.SendRequestDirectoryRequest = (rqst, rsponse) => { return direcResponse; };
Is there any way to send a 0 return code in the return of the Mole delegate?
Thanks for you time.
|
|
|
|
|
If this is possible, please tell me how I can generate a set of constants which...
-- I can be reasonably certain are each mathematically unique
-- I don't have to assign individually, one-by-one with my keyboard.
ints will be fine.
I wrote out a long explanation of what I'm after, so if this doesn't make sense, just ask and I'll post a more involved explanation.
|
|
|
|
|
Enums[^]
enum zeConstants: int
{
bla1,
CListCtrl,
bacon,
StarWars = 7
}
static void Main()
{
foreach (zeConstants flag in Enum.GetValues(typeof(zeConstants)))
{
Console.WriteLine("{0} = {1}", flag, (int)flag);
}
Console.ReadLine();
}
|
|
|
|
|
Just discovered this, just guessing, never saw it before.
Looked it up on MSDN and DUH !!! They don't have it referenced !
Please, I gotta be wrong on that. Correct me and show me where, and what this is doing, and where the syntax is defined..
public enum UniqueValue
{
Fred,
Barney,
Dino,
BamBam,
Pebbles,
MrSlate,
Arnold
}
If that does what I'm hoping it does, then I am one step closer to my goal of legible sensible source code
|
|
|
|
|
C-P-User-3 wrote: Please, I gotta be wrong on that. Correct me and show me where, and what this is doing, and where the syntax is defined..
The code you have the would create a constant flag, used as "UniqueValue.Fred" for 0, or "UniqueValue.Barney" for 1. There's some examples here[^].
|
|
|
|
|
Got confused when the C# IDE put "UniqueValue" in bright pink on my screen. I thought I had stumbled onto a keyword.
|
|
|
|
|
C-P-User-3 wrote: Got confused when the C# IDE put "UniqueValue" in bright pink on my screen.
Pink??
http://studiostyl.es/[^]
|
|
|
|
|
Pink ? Strong purple ? I don't know what to call it.
Whatever, whatever, my education continues and now I'm so smart that I know that the color changed because it follows the "enum", and not only that, I think I'm getting this stuff about
public enum Zyxwvut
{
OneValue,
AnotherValue,
WhateverValue,
AndSoOn
}
Clear in my head, even the syntax with the colon and the type before the opening bracket.
Thanks for the pointer to the syntax page. I thought "UniqueValue" was a keyword or something, stuck it into the search thing on msdn and came up with zero; at which time I had a major DUH moment. Your suggestion clarified a lot for me. Thanks a ton.
|
|
|
|
|
They have contests for who has the best studio styles now ?
Hmmm, I wonder, you know; that's really not a bad idea.
Later, gotta get this done for the boss so I can keep my job
|
|
|
|
|
Hold it, wait a minute, on that msdn page, I just read this...
From the MSDN page: Usually it is best to define an enum directly within a namespace so that all classes in the namespace can access it with equal convenience. However, an enum can also be nested within a class or struct. I thought that every variable had to be in a class; but then these aren't variables; I guess; somebody fix my brain on this matter.
So then, if I take the enum thing (what is the right word for "thing" in this context ?) out of the class structure, and just put it after the opening bracket of the namespace, I can use the names in the enum list as they are ? Without the UniqueValue.Fred nomenclature ?
e.g., I could just use the name "Fred" (no quotes" and get a guaranteed unique value ?
|
|
|
|
|
An enumeration is a class. There are cases where you use typeof(MyEnum) .
C-P-User-3 wrote: I could just use the name "Fred"
Only in VB. But it's not a good idea.
|
|
|
|
|
C-P-User-3 wrote: I can use the names in the enum list as they are ? Without the UniqueValue.Fred nomenclature ?
It "has" to have the "UniqueValue" prefix; you could perhaps omit it if it were local to the class, but it'd be gross.
It'll be "namespace.enumname.value"
|
|
|
|
|
C-P-User-3 wrote: Looked it up on MSDN and DUH !!! They don't have it referenced ! No? What about this reference[^]?
Perhaps it would be worth getting hold of a good reference on C# (.NET Book Zero[^] is a reasonable start), rather than trying to learn from CodeProject questions.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Richard MacCutchan wrote: Perhaps it would be worth getting hold of a good reference on C# (.NET Book Zero[^] is a reasonable start), rather than trying to learn from CodeProject questions. Now that is a very useful resource. Thank you; like, a lot.
This captured my attention...From Petzold's Book: The latest version of Windows—Microsoft Windows Vista—includes the .NET Framework 3.0 Reading various websites and news stories, the word "Metro" gives me this mildly creepy feeling.
i.e., I'm studying trailing edge technology which nobody will want next year.
For the moment, I say thank you; it appears to be a useful thing to read.
Well yes; for the moment.
|
|
|
|
|
C-P-User-3 wrote: i.e., I'm studying trailing edge technology which nobody will want next year. On the contrary, there will be many businesses that will take years to move up to Windows 7, let alone Metro. Also learning the basics of .NET and C# will give you a solid grounding for learning all the new technology that is coming along.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Metro and WinRT are built on .Net, although the UI comes from Silverlight/WPF which is .Net 3.5 I think. But the language is the same, the core libraries are the same, and learning .Net 3.0 will give you a very good grounding in everything important that you'll need to be able to pick up WPF based approaches.
|
|
|
|
|
Thank you Richard and Bob.
Hope you are both correct.
|
|
|
|