Questions tagged [custom-object]

202 questions
0
votes
2 answers

Iterate through an array of powershell custom objects and output to html

I have an array : $results =@() Then i loop with custom logic through wmi and create custom objects that i add to the array like this: $item= @{} $item.freePercent = $freePercent $item.freeGB = $freeGB $item.system = $system $item.disk =…
e4rthdog
  • 5,103
  • 4
  • 40
  • 89
0
votes
2 answers

Why can't I bind a list of custom objects to datagridview?

I have looked through your questions as well as elsewhere on the internet for the past two hours and cannot find a solution for my problem anywhere, or at least I didn't understand it if I did. I apologize in advance if this appears redundant or…
0
votes
2 answers

How do I create an object in c# similar to powershell system.object?

In Powershell, I can do the following with a list $obj = New-Object System.Object foreach ($item in $list) { $obj | Add-Member -type NoteProperty -name fname -value $item.firstname $obj | Add-Member -type NoteProperty -name lname…
anoopb
  • 533
  • 4
  • 6
  • 20
0
votes
1 answer

Returning Custom Class from WCF Method?

There are so many question about that but there is no solution for my problem. I want to return a custom class which has datacontract key and it's members have datamember key. I am getting this error while I testing it; When I call it from my…
Tugrul Emre Atalay
  • 918
  • 1
  • 9
  • 28
0
votes
1 answer

How to read values from a DataGridView.Rows collection and assign them to a list of custom objects?

My custom object has two properties: userid and username. Here I found how to traverse through each DataGridViewRow using a foreach loop, but I don't get how to assign current cell value to my custom object value. foreach (DataGridViewRow dr in…
ddg
  • 1
  • 1
  • 1
0
votes
1 answer

Where do you create a custom model (DTO) in server code, such that Breeze can relate to EntityFramework entities?

I am developing a SPA using Angular-Breeze-WebAPI-EntityFramework. Now Breeze uses the Entity Framework metadata information to create it's own Breeze models. We use this in our application for Breeze validation. So far, it's all been nice and easy.…
filya
  • 31
  • 8
0
votes
1 answer

Calling function from Worksheet_Change with custom object as parameter

Code below is giving me an Object doesn't support this property or method in HelperFunctions.updatecontractlist (PC) Private Sub Worksheet_Change(ByVal Target As Range) Dim PCName As String, BU, PC As Variant If Target.Address = "$B$1" Then …
user2491612
0
votes
1 answer

Salesforce dataset with many fields

I have a dataset with over 90 fields that can be put into about 4 groups. I was wondering if I could put this in Salesforce. To update 1 record with 90 fields would be cumbersome. What would be great is if there was something like the Wizard…
Karim Lameer
  • 173
  • 1
  • 2
  • 9
0
votes
1 answer

Converting Apex trigger to Apex class

I have built a large Apex trigger that really belongs in a class, but I am not sure how to transition my code from a trigger to a trigger/class/method schema. So my question: How would I migrate these triggers into a trigger/class/methods…
isalew
  • 1
  • 2
0
votes
2 answers

Get Contacts from Accounts associated to the Custom Object

We have a custom object in Salesforce called Account Campaign Member. I associates the companies relevant to the campaign (there is a lookup field called Account which connects Account Campaign Member with Accounts). We would like to be able to have…
mgunia
  • 147
  • 2
  • 7
  • 24
0
votes
1 answer

In Python multiprocessing, how can a user-defined object be communicated between processes using a queue?

I am beginning to put together a simple multiprocessing job management system and I am having some difficulty in sending a user-defined object (of class Message, shown below) between processes using a queue (the queue communications, shown below).…
d3pd
  • 7,935
  • 24
  • 76
  • 127
0
votes
2 answers

Altering the way functions are called in a specific class in javascript

I'm writing an extension to the javascript context object. What I want to achieve: In the end, I want to have a function which takes only one argument, canvas. From there on it should extend that canvas element with all kinds of extra functionality…
Azeirah
  • 6,176
  • 6
  • 25
  • 44
0
votes
2 answers

Build Object Hierarchy in Excel-VBA

I'm losing quite some time copy-pasting identical properties and methods in various vba custom object I'm building. How do I create an custom-object hierarchy in VBA so one object and inherit properties and methods from others. In python I would…
user2491612
0
votes
1 answer

push notification with custom object

I need some information regarding what I'll be needing to implement and how if I would like to do the following: lets say me and my friend/s both have my app installed on the iphone, in the app I would like to have a "contacts" bar and see that he…
Eden V.
  • 973
  • 1
  • 6
  • 10
0
votes
1 answer

Performance regarding return type for LINQ query compatible with automatic sorting

this isn't really an issue, but more of a concern that I would appreciate some input on please. Winforms C# .net3.5[sp1] Visual Studio 2008 using Linq2Sql (more specifically PLINQO...which is fantastic btw!). I have a resultset returning +/- 19000…
Shalan
  • 943
  • 4
  • 20
  • 43