Questions tagged [data-objects]

98 questions
14
votes
5 answers

Refactoring large data object

What are some common strategies for refactoring large "state-only" objects? I am working on a specific soft-real-time decision support system which does online modeling/simulation of the national airspace. This piece of software consumes a number…
andersoj
  • 22,406
  • 7
  • 62
  • 73
7
votes
1 answer

Create a DataObject to build table rows and columns in SilverStripe

I'm trying to do something very different for a SilverStripe site: on several subpages are tables of data, and these tables each have their own set of column headers, and some tables have more columns than others. I want to avoid building out tables…
Dejsa Cocan
  • 1,539
  • 3
  • 19
  • 56
7
votes
3 answers

How to define difference between business model and a data model?

I see the term often used as if there is a concrete distinction between the two when discussing MVC for OO languages. From what I get from context it is that business models perform an action to mutate the data models. Is that a correct way to…
startoftext
  • 3,846
  • 7
  • 40
  • 49
6
votes
1 answer

Silverstripe 3.2: How to add and update Dataobjects in a frontend form dynamically?

Example: I have Members (who can login and update their data) who have one or many qualifications. So I have a DataObject 'Members' and a DataObject 'Qualification' with a has_one/has_many relationship. Something like this: class Qualification…
iraira
  • 315
  • 2
  • 13
5
votes
4 answers

How do I assign a data object with const members?

Hope this is not a duplicate. If so, please point me to it in a comment and I'll remove the question again. I have a data object with data that's only valid in a bundle - i.e. there's no sense in changing the value of one member without invalidating…
Martin Hennings
  • 16,418
  • 9
  • 48
  • 68
4
votes
1 answer

Data Model Definition Standard in JavaScript/Node

I recently started programming in JavaScript (Server side) and Node.js. I come from Java background where there is a concrete standard on how you define Data Object, which is Java Bean. Do we have any such standards in JavaScript/Node on how we…
Prabhash Rathore
  • 709
  • 10
  • 18
4
votes
3 answers

Java Design: dealing with data objects used by many classes

First, a brief description of the library that brought this up: I have a library that listens continuously on a provided serial port, reading in blocks of bytes and passing them along to be processed in some meaningful way (details aren't important…
JDS
  • 1,233
  • 4
  • 15
  • 27
3
votes
1 answer

DataObject.GetDatapresent with subclass

When I call this method DataObject.GetData(typeof(ItemType)) from an instance of a subclass of ItemType the method returns null... How can i get the data from the subtype? Thank you
Giacomo Tagliabue
  • 1,679
  • 2
  • 15
  • 31
3
votes
2 answers

Silverstripe 3.2 - How to manage different lists of the same Dataobjects in ModelAdmin in different tabs

I'd like to manage different filtered lists of the same DataObject in ModelAdmin. I have the DataObject "Message" which has a SentbyID and a SenttoID. In ModelAdmin I want to manage two lists. One list with all messages with a certain SentbyID and…
iraira
  • 315
  • 2
  • 13
3
votes
2 answers

Can I access R data objects' attributes without fully loading objects from file?

Here's the situation. My R code is supposed to check whether existing RData files in application's cache are up-to-date. I do that by saving the files with names consisting of base64-encoded names of a specific data element. However, data…
Aleksandr Blekh
  • 2,462
  • 4
  • 32
  • 64
2
votes
1 answer

How to build data object in browser?

I want to know that can we build a data object using jquery/json, which only exist in the browser like we have session object at server side? The reason for having a data object is that I am providing different layouts for users so they can…
Safran Ali
  • 4,477
  • 9
  • 40
  • 57
2
votes
2 answers

PHP PEAR/DataObject equivalent to Rails' easy ActiveRecord finding functionality

In Rails, say a blogging application, given a particular post object you could get the name of the author of the post doing something like: post = Post.find(1) author_name = post.author.name Is there a PHP equivalent using DataObject, something…
jefflunt
  • 33,527
  • 7
  • 88
  • 126
2
votes
1 answer

How to yield a nilable shared object in Chapel?

Currently, I am working on Chapel Data Objects and I am facing some issues. I have a class named Row which can be nil. I have these three methods: override iter these()ref { for row in this.fetchall(){ yield row; } } …
2
votes
1 answer

how can i add (append) custom format to clipboard

I try to create a clipboard monitor program, i need to detect when data set from my app and then i can ignore them, for this work i try to add custome format to clipboard so first of all register new format with this code : int iii =…
MrUnknow
  • 359
  • 3
  • 18
2
votes
1 answer

Silverstripe 3.2: How to export db fields of only one Dataobject in a CSV file?

I know there is a GridFieldExportButton which exports all the data of a GridField. But what I want is a custom Button which exports all the $db fields (ore just a few of them) of only ONE DataObject in a CSV file and download it. So I want this…
iraira
  • 315
  • 2
  • 13
1
2 3 4 5 6 7