Questions tagged [circular-reference]

A circular reference is a series of references where the last object references the first, resulting in a closed loop.

A circular reference is a series of references where the last object references the first, resulting in a closed loop.

Circular references can appear in computer programming when one piece of code requires the result from another, but that code needs the result from the first.

Information is taken from Wikipedia, more information available there.

758 questions
0
votes
1 answer

How can I make the gallery circular in jCoverFlip plugin jQuery?

i am using jCoverFlip (http://www.jcoverflip.com/) plugin for a gallery in my site. What I want to do, is to make this gallery circular. Does anyone know how can I do this? Thanks
novellino
  • 41
  • 6
0
votes
2 answers

COUNTIF to show Blank if Zero

I am using the below formula: =IF(COUNTIFS('New In'!F:F,YTD!$A2,'New In'!B:B,YTD!$P$217)=0,"",COUNTIFS('New In'!F:F,YTD!$A2,'New In'!B:B,YTD!$P$217)) what it needs to do is show a blank if the result is zero - It does work, to an extent - If the…
dmorgan20
  • 353
  • 8
  • 33
0
votes
1 answer

Why is my function causing a TypeError is not a function?

I am calling a function that appears to obviously be a function, but I keep getting TypeError: [function name] is not a function. Here is a minimal example to reproduce the error. main.ts import someFunction from './someFunction' export const…
0
votes
1 answer

Why the code does not work to avoid Circular References?

I am compiling code to avoid Retain Cycle, When I use weak , I got this error: 1. property of weak attribute must be of object type; 2. Unknown type name 'OrderEntry'. What is wrong with the code? Thanks! // OrderEntry.h #import…
developermike
  • 625
  • 9
  • 17
0
votes
0 answers

MS-Access circular reference error

I am getting a circular reference caused by 'qrySectorAX'. From the following code: SELECT qryIntervalSectorAX.SectorID, qryIntervalSectorAX.UnitID, Count(qryIntervalSectorAX.[Length]) AS NoOfWeights,…
RSJ85
  • 9
  • 3
0
votes
1 answer

Use object that is being initialized as parameter

I stumbled upon the problem of not being able to use a windows method as a property inside the objects initializer: var window = new DialogWindow { DataContext = new YesNoDialogViewModel() { DialogMessage = confirmation.Content as…
Mafii
  • 7,227
  • 1
  • 35
  • 55
0
votes
1 answer

How can I avoid the circular reference in my database design?

I have designed a database for a transport management program. And one part seems to be OK, but I’m not sure how to store a combination from Package, Price and Version to a Project, to avoid a circular reference. Just a short explanation of the…
StefanS
  • 33
  • 5
0
votes
1 answer

Django app structutre and circular reference

I'm trying to keep my project well organized, so I try to keep it splitted to apps. Assume a blog app with a BlogPost model. Now I add to that a Tag app, which has a Tag model with foreign key to Post. Now if I want to write a method get_tags(), in…
user3599803
  • 6,435
  • 17
  • 69
  • 130
0
votes
1 answer

JSON.stringify throws error "A circular reference was detected while serializing an object of type 'System.Reflection.RuntimeModule'. "

On the client side an object 'selectedMeter' is build in JavaScript. This object is send to the server with an ajax call and passed to the mvc controller. $.ajax({ url: 'SaveManualMeter', type: "POST", cache: false, contentType:…
0
votes
1 answer

Adjacent List Model Tree, preventing loop

Example table: CREATE TABLE adj_list_model ( id INT NOT NULL AUTO INCREMENT, parent_id INT, my_string varchar(255),//some random information PRIMARY KEY (id) ) The tree I am creating will have multiple "root" users in the same table…
Webeng
  • 7,050
  • 4
  • 31
  • 59
0
votes
3 answers

How to stop this recursive function?

I have javascript array, where each item has reference to parent, and they can be looped (circular reference). Example: [ {"id": 1, "firstName": "Macko","parentId": 12}, {"id": 2, "firstName": "Jess","parentId": 1}, {"id": 3,…
Ketus
  • 123
  • 1
  • 11
0
votes
1 answer

Use Circular reference

I want to use some code of Project 1 (VB.NET) in Project 2 (c# Windows Form) and vice-versa. I know we cannot create circular reference but is there any other way we can achieve it?
Developer Nation
  • 374
  • 3
  • 4
  • 20
0
votes
1 answer

Entity Framework Base Class

Having a base class for entity objects I am being faced with the problem of circular reference and base Dependent Role introduction problems wherever I have a composite class of entities: public abstract class Base { public int Id {get;set;} …
0
votes
0 answers

Breaking c# circular reference for Json and assigning object to null

I have an database with foreign keys and a model loaded from it. There are circular references in the objects due to these inherited references. In my case, Course and SiteUser are object references. When I run the code below, the references do not…
0
votes
1 answer

UDF Circular reference

I have a task with creating a couple UDF's mainly to compare sales figures against a benchmark and then return an integer based on the same value which was returned on a previous sheet. I've run into a the infamous circular error which makes no…
grturner
  • 23
  • 4