Questions tagged [onupdate]
74 questions
1
vote
0 answers
Two foreign keys from 1 table ON DELETE and ON UPDATE
I'm creating a website, and I want to allow users to give reputations one to another. So I have 2 FOREIGN KEYs referencing to User table.
With this, I cannot apply ON DELETE and ON UPDATE on CASCADE on both CONSTRAINTS - it allows me to do it on…

Darko Mitic
- 47
- 7
1
vote
1 answer
Enabling field visibility from combo box selection in Access 2007
I have a form in Microsoft Access 2007 called System, and a combo box called Utility within this form. Below this is yet another combo box called Utility_FOO, and I have disabled its visibility by default. One of the options in Utilities is a…

Bucket
- 7,415
- 9
- 35
- 45
1
vote
1 answer
andengine performance issue
I am making a racing game looking like old school "Pole position" (kind of).
I create my road from 50 rectangles (RoadFragment is a rectangle with two additional white small rectangles attached to simulate curbs of the road):
int y = 0;
int…

Łukasz Motyczka
- 1,169
- 2
- 13
- 35
1
vote
2 answers
NHibernate: why ILifecycle.OnUpdate is not called every time?
NHibernate_reference.pdf, page 26:
Note that ILifecycle.OnUpdate() is not called every time the object's persistent state is updated. It is called only when a
transient object is passed to ISession.Update().
Why it design link that?

ldp615
- 932
- 1
- 9
- 13
1
vote
1 answer
Android PedingIntent and setOnClickFillInIntent don't start Activity
In my AppsSerive i load the installed packages with:
mApps = mContext.getPackageManager().queryIntentActivities(mainIntent, 0);
then i show an icon of the application and the label. I want to start the activity after klick on the icon or label.
I…

MG112
- 55
- 1
- 8
1
vote
0 answers
Is "onupdate cascade" for primary key supported in entity framework 6 and above?
We had a requirement where a two character key was to be used as a primary key (natural key) instead of a surrogate key for a look up table in sql server 2012 database. The two characters were not supposed to change, and thus was the choice for…

Sri Katte
- 67
- 7
1
vote
1 answer
CRichEditCtrl OnUpdate(): how to know the start and end positions when a paste is received?
I'm using a CRichEditCtrl to edit a computer language, and on every change to it I'm calling SetSelectionCharFormat on the current line of text (as reported by LineFromChar(-1)) to highlight the syntax. (EG: comments in green, section headings in a…

Swiss Frank
- 1,985
- 15
- 33
1
vote
1 answer
onUpdate() intilized variable are null in onReceive of widget class
I initialize one variable in an onUpdate() method and after that I call onReceive() function which runs fine but cannot access varible set in onUpdate() method. Why is that? Those varible is string variableand are declared public. Am I missing…

Shakeeb Ayaz
- 6,200
- 6
- 45
- 64
1
vote
3 answers
How to set Widget button visibility?
Hi first of all i'm sorry for my bad english. How to set RemoteViews .setViewVisibility? I want to hide widget button when i click on it.
Here is my code. Thanks for help.
@Override
public void onUpdate(Context context, AppWidgetManager…

Gillven
- 21
- 1
- 3
1
vote
1 answer
Mysql "ON UPDATE" constraint deletes my row
I have a problem with my DB (InnoDB). I have two tables:
table1{
id1 INT..
..
PRIMARY KEY (id1)
}
table2{
fk INT..
...
FOREIGN KEY (FK) REFERENCES table1(id1)
ON DELETE CASCADE
ON UPDATE CASCADE
…

Marco Peca
- 81
- 1
- 6
1
vote
1 answer
I set field value w/ javascript, onchange not triggered. Alternative solution?
I have read some solutions to this, none of which are hassle free, so I thought maybe some modern solution now exist to remedy this. It should anyways, since the problem has been around for a while. Something in the more recent jQuery updates…

Matt Welander
- 8,234
- 24
- 88
- 138
0
votes
1 answer
Updating ImageVIew in widget Android
When I want to update my ImegeView, i see "Problem loading widget";
My main.xml

otopba
- 214
- 1
- 6
- 14
0
votes
1 answer
Additional table not created
I'm trying to add a second table to my application but I'm not having any luck. The two tables are their own classes and are singletons. I pass in a reference of the database in the onUpgrade method and again as an instance…

DroidT
- 3,168
- 3
- 31
- 29
0
votes
1 answer
It it possible to determine of how AppWidgetProvider's onUpdate() method was called?
As I know there are two types of calling AppWidgetProvider's onUpdate() method:
when updatePeriodMillis circle is expired
when new widget is added to homescreen
In onUpdate() method, I want to start some service in first case, but won't in second.…

riden
- 3
- 2
0
votes
0 answers
app widget is not being updated after first automatic onUpdate is called
I experienced some change in the behaviour of my widget:
Previously the widget was updating automatically (every 30min) and after some certain widget action has happened (after a new entry had been added to some database). Also after some automatic…

aronyi
- 73
- 8