How to create a temporary cursor in meteor - meteor

Im working on a mobile app that needs to display a suggested set of data and will not update as the user removes suggestions and will show as empty if the user removes all (5) entries in the set. If been trying with reactive:false which seems to work but starts after second item removed. Anyone have a way to achieve this?

Related

Deleting demo rows in a 2sxc list (2sxc 8.5.6)

If a blank demo row (denoted as (0)), gets created in a list by mistake you are able to see it in the 'Manage content-item lists' window, but they have no edit icon or any way to delete them. Is there another way to get rid of these extra unwanted items? they also don't show in the admin area.
Thanks!
The reason you don't see it is because it doesn't really exist yet. It's just a slot / placeholder. So there is no item.
Basically you should only have this in situations where you have list-enabled, hit the round (+) for add another placeholder-item. I believe the (-) is missing on the first item, because that could cause side-effects.
There is a way to go into advanced admin to remove it, but it's hard as this is not a normal thing to do - when you have a list, you usually want to add content.
Since you have not added any data yet, I would simply remove the module and add another one - that's easier than going the advanced admin.

2sxc Dropdown list string don't appear

I have a problem on a dropdown list, I need to edit it and add some options, but I can't or better I dont' find the string list?
Click there for see Dropdown list string is empty
Can You help me?
i have other dropdown in this app and the other work well
thanks
Fabio
You are probably affected by an upgrade-issue. 2sxc had to do a change in the field-definition structure when the UI went to angular in 8.0. What happened is this
Previously the entity describing the #String for an input-field had too many properties - many of which never applied to the specific field (like a length-field, which didn't apply to a drop-down).
In 2sxc 8 this was changed, so a string field now has 3 metadata entities describing what the UI should show
#All - containing the main properties like name, help text, required
#String - not containing anything any more
#string-dropdown - containing the settings only relevant to drop-downs
The #String-metadata entity still exists to ensure old UIs still work, but it's deprecated. So the values don't show up any more. But :) you can still get it from debug-mode, to then copy the values to the new container. Here's how:
Go to the admin > data UI
Go into debug mode (Ctrl+Click) http://2sxc.org/en/Blog/post/debugging-2sxc-8-enter-advanced-mode-with-control-click
now open the UI - you should see all hidden fields now

AutoHotKey to focus a Form in Microsoft Access 2010/2013

I would like to use AutoHotKey to bring an access database to the screen, then take focus on one form (the form is open, but there will always be multiple other forms open at the same time, additionally, the form in question could be stacked at the bottom) and then the rest can be done with custom shortcuts that only work in this form.
I am also open for other solutions to do the same job, mouse clicks is also a possibility but forms are not always in the same place on different computers and they can also be moved during a session.
This is what I have been testing so far:
Bring up the database with IfWinExist, [title of window]
Then I tried using ControlFocus, [ControllerName]
That did work, but the controllername changes depending on what other forms are open and in which order they where last clicked on.
I have made a screenshot:
Any help would be nice, my main problem is that I do not know what AHK can do and therefore I feel very limited.
In the place of WinTitle you can also use other parameters of the window, not only WinTitle. More about it here: http://ahkscript.org/docs/misc/WinTitle.htm
Also you can use ImageSearch to get coordinates of the window and use these coordinates to move window without WinMove like here: http://ahkscript.org/boards/viewtopic.php?f=6&t=4013

How to dynamically load rows in enyo when using the Repeater kind?

I was able to add a load more section on the bottom row and successfully have a load more working using setCount. Except it reloads everything (as its suppose to) with no way of maintaining the state of where you were before load more was clicked. So I tried using renderRow, but that does not work because it only refreshes rows that already exists (in my case the rows to be loaded have not been loaded into memory yet). I don't see anything immediately useful in the docs. Anyone encountered this problem or have an idea of how to solve it. Thanks.
I'll try to update this answer with something more complete but what you need to do is find the index of the topmost row before you add your new content and then scroll that row back into view after you update. Something like that should do what you want. I think there were some discussions back on the old developer.palm.com forums from Enyo 1 days that discuss the technique. Should still be applicable to Enyo 2.

Element preservation bug in Meteor app

I've made a watch-as-I-type real-time chat service in Meteor, but I'm having trouble with the built-in element preservation feature in Meteor. Basically, I need the current chat message div to not be updated while the text input in it has focus. The documentation has the following instructions:
Another thorny problem in hand-written applications is element
preservation. Suppose the user is typing text into an element,
and then the area of the page that includes that element is redrawn.
The user could be in for a bumpy ride, as the focus, the cursor
position, the partially entered text, and the accented character input
state will be lost when the is recreated.
This is another problem that Meteor solves automatically. Just make
sure that each of your focusable elements either has a unique id, or
has a name that is unique within the closest parent that has an id.
Meteor will preserve these elements even when their enclosing template
is rerendered, but will still update their children and copy over any
attribute changes.
Following these directions, I set a unique id for my input field to make sure it doesn't get re-rendered while I'm typing in it. But now I'm facing the following two problems:
The other person's chat message updates as they type, but this update pauses while I'm typing in my own message. As soon as I stop typing (even if my input field has focus), their message starts getting updated again.
When a new message is created and its div is inserted, my message gets updated / re-rendered even if its input field has focus. This causes it to lose focus suddenly.
You can test this out with two different computers/users in the same chat room at http://babble.im.
Is this a bug in the Meteor code, or my own? How can I find out?
Edit:
Ah, I think I found the reason for the first problem:
Meteor normally batches up any needed updates and executes them only
when your code isn't running. That way, you can be sure that the DOM
won't change out from underneath you. Sometimes you want the opposite
behavior. For example, if you've just inserted a record in the
database, you might want to force the DOM to update so you can find
the new elements using a library like jQuery. In that case, call
Meteor.flush to bring the DOM up to date immediately.
I guess my code was running while the user was typing, so the DOM wasn't being updated. I'll try to use Meteor.flush to fix it. Now what's up with the second problem?
The reason for the first issue is that Meteor used to freeze all changes to your local database cache while any methods were in flight. Meteor 0.5.1 improved this to only freeze changes to the documents that you were modifying locally. I suspect that Meteor 0.5.1 fixes this. See http://meteor.com/blog/2012/11/19/latency-compensation-improvements-coming-soon-in-meteor-051 for more information.
The second issue is probably addressed by the preserve-inputs package added in Meteor 0.4.2, but it's hard to be sure without more details.
I'd love to know if your problems still exist in current versions of Meteor!

Resources