Problem with accessing parameter in HTML client, Access is not possible before created.

I have one Screen in which I set a date.
I pass the date to another Screen. In this screen I have a tile list showing all the busses and I want to show the current number of orders of the passed date for each bus.
So I created a custom field in the tile for showing the amount of orders,  and it workes fine for a hardcoded date.
But I have no access to the passed parameter, because it is to early.
I get access after Screen.created to the Parameter, but there it is too late, because the list is already created with 0 as order Count.
myapp.freieBusse.bkz1_render = function (element, contentItem) {
var querybus = contentItem.value;
// var querydatum = new Date(); <=== This works fine for today
var querydatum = screen.queryDatumScreen; <== queryDatumScreen = Null at this Moment.
myapp.activeDataWorkspace.wksqlData.QueryDispoByDatAndBus(querybus,querydatum).execute().then(function (results) {
var countDispo = CountDispo(results);
element.innerHTML = countDispo;
function CountDispo(disposaetze) {
var totalDisp = 0;
var dispos = disposaetze.results;
dispos.forEach(function (dispo) {
totalDisp = totalDisp + 1;
return totalDisp;
How can I get an eralier Access to the Parameter. Or how can I manipulate the order Count of each row in the created of the Screen?
Helmut

The result is as slow that you can count the order with your fingers, but it works.
If you use a
WCF RIA Service the result will be fast. The calculations are performed inside SQL server and returned to the LightSwitch client in a single call per page.
You can also use a Web API call but for a table of data it actually takes a lot of careful JavaScript code and you lose the drag and drop and strong typing in the HTML designer.
Unleash the Power - Get the LightSwitch 2013 HTML Client / SharePoint 2013 book
http://LightSwitchHelpWebsite.com

Similar Messages

  • Problems with the vba command sendkeys in Access 2013.

    Hi, I have problems with the vba command sendkeys in Access 2013.
    I use a text field (no control) in a form. By means of the VBA command SendKeys "+ {DELETE}", 1  I get the text in memory from the text field, then place (paste) the text in a Word document. The command line sendkeys
    is followed by moving the focus to a particular control. In Access 2003, which went smoothly. Now the sendkeys command is executed only in Access 2013 in the control that then receives focus. If the procedure ends with the sendkeys command then it works well.
    The procedure with the sendkeys command is activated by a button on a form.
    Who can help me?
    private user

    Hi H.Plmp,
    Based on the description, you want to call the sendkeys from a button.
    >> use a text field (no control) in a form. By means of the VBA command SendKeys "+ {DELETE}", 1  I get the text in memory from the text field<<
    What did you mean that you no control? And how did you get the text in memory from the text field? Also I am not able to understand the exact reason that the command doesn't works in Access 2013.
    And based on the test, sendkeys "+ {Delete}" works well for me when I set a focus for the textbox control. Here is th test code:
    Me.Controls("txtField1").SetFocus
    SendKeys "+ {DELETE}", 1
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem with national characters on windows client

    Hello there,
    I'am having problem with national characters on windows client.
    All national data stored in NVARCHAR2 colums, applications (.net) works fine,
    but in sqlplus:
    select city from test_table;
    - everything ok, sqlplus shows national characters
    select dump(N'<national symbols>') from dual
    - returns
    Typ=96 Len=12: 0,191,0,191,0,191,0,191,0,191,0,191
    select * from test_table where city = N'<national symbols> '
    - always returns nothing
    As i understand the problem in
    sql query text (and national literals) convertion
    to servers "WE8ISO8859P1" encoding, Is it possible
    to solve the issue?
    Thanks in advance
    PS.
    Console in right mode (chcp=1251)
    sqlplus shows russian messages well
    Server (oracle 9 on solaris):
    select * from nls_database_parameters
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_SAVED_NCHAR_CS WE8ISO8859P1
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_RDBMS_VERSION 9.2.0.6.0
    Client (windows server 2003, oracle client 10):
    NLS_LANG = RUSSIAN_CIS.CL8MSWIN1251

    N'<national symbols>', being part of an SQL statement, will be converted to the database character set (WE8ISO8859P1) before being parsed. Only if the client and the database are both 10.2 or higher, the client can encode the literal appropriately so that it survives this conversion.
    In earlier versions, you can do the encoding yourself. Instead of the N'<national symbols>' literal use the UNISTR function: UNISTR('\xxxx\yyyy\zzzz'), where U+xxxx, U+yyyy, U+zzzz are Unicode code points of your national characters.
    -- Sergiusz

  • BPM SMQ2 in sysfail Access using a 'ZERO' object reference is not possible

    Hi ,
    I am working on a IDOC to SOAP synchronous scenario
    So I am using a BPM....
    I have written a operation mapping outside BPM
    1) Request MM creates the SOAP rquest
    2) Response is a ABAP mapping where i am checking the response from webserice and then generating an email using ABAP code.
    now when i am running this scneario works fine and the mail gets generated...
    however i get a green flag in moni  and in SMQ2 in sysfail Access using a 'ZERO' object reference is not possible
    PS : Also  the response coming from the webserice has a custom header which does not match with the response ABAP mapping source MT
    however if I work on the same thing using Proxy to SOAP sync there is no sysfail message and it works fine
    Is this a bug in the system ...i am using PI 7.1

    Hi,
    Try to implement SAP note 1164228 or apply package SAPKB71007 to resolve your issue.

  • Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding.

    Hi, I got the problem with Firefox 27.0.1. I can not run Selenium on Firefox after login a website for automation testing. The browser is not responding. However when I close Nunit, the page is back to be normal. The title is returned to the name of website without "not responding". I sure this problem did not happen on Firefox version 26. I just got this problem when firefox upgrading automatically to version 27. Please help me fix this problem because it is very important for my work. If you need more information pls send your concerns via my email address.
    Thanks so much

    Hi, the work around suggested above should put you in working mode in the meantime. However to help investigate the issue it is possible to analyze what is not loading or taking a long time by analyzing the network traffic or http headers of the Nunit web page.
    *[https://addons.mozilla.org/en-us/firefox/addon/live-http-headers/]
    *Web developer Tools > Web console
    If you post the results with out the user data, we are happy to help.

  • I can't text a contact but can voice phone them. I don't have the problem with any other contact and the contact is not blocked. I have an iphone5.0 OS 8.1.3

    I can't text a contact but can voice phone them. I don't have the problem with any other contact and the contact is not blocked. I have an iphone5.0 OS 8.1.3. I used to be able to text them with no problem. The only difference I can think is that this problem may have started since I downloaded the OS I am using now
    cycleluke

    Wasn't responding to you. Please show me links where this helped.
    Apple isn't showing any system problems: https://www.apple.com/support/systemstatus/

  • HT1976 i have problem with my iphone, it;s never lock and not read sim card, before reinstaling 6.01, thnx juliany

    i have problem with my iphone, it;s never lock and not read sim card, before reinstaling 6.01, thnx juliany

    If you are both on the T-mobile network, the sim card should work.  If you did a Erase All Content and Settings, then she should be at the point of activation as a new device...talk to T-mobile and be sure the sim she is using is a valid sim card.

  • Had problem with laptop so reinstalled it now itunes will not sync on both laptops, it did before.

    Had problem with laptop so reinstalled it now itunes will not sync on both laptops, it did before to my iphone5 says cannot sync to 2 libraries until I reinstalled it did.

    iDevices can only be synched with one library.  However, you can sync successfully with more than one computer if each has a copy of the same logical library - the identifier that iTunes uses to determine which library is synced an iDevice is recorded within the iTunes database (the iTunes Library.itl file).  The best approach is to replicate your complete library (database, media, artwork, associated files) from one PC to the other.  When you reinstalled iTunes on your laptop it will, by default, have created a new library with a distinct id from that of your other machine.  Even if you copied all your media from one to the other, iTunes will still see the libraries as distinct with respect to syncing iDevices.
    If you have configured iTunes to organize your media and to copy files to the iTunes Media folder, then the complete library will be contained within (by default) C:\Users\username\Music\iTunes, with a structure of subfolders and key files like this:
    If this is the case, you can (with iTunes not running on either machine):
    Copy this iTunes folder from laptop 2 to laptop 1 (the one that's had iTunes reinstalled) - depending on the size of your library you can do this over a network, using a thumb drive, or an external (USB) hard driveNote this this assumes no media on laptop 1 that's not also on laptop 2 - if this isn't the case, there's a slightly different process to follow to ensure that this media is preserved and can be added to the "common" library
    Once the copy is complete, make sure that iTunes is using the correct library database by holding down SHIFT as you start iTunes.  When you see this prompt:
    select Choose Library..., navigate to the iTunes folder you just copied, select the iTunes Library.itl file you'll find there, and click Open.
    For future reference, you can use turingtest2's user tip on Backup your iTunes for Windows library with SyncToy for a suitable method to backup your library to an external drive - you can then, with care, use this to keep the copies of your common library in sync across your laptops.

  • Itunes has detected a problem with your audio configuration Audio/Video playback may not operate properly

    I cant copy the music from itune library to iphone. Message "itunes has detected a problem with your audio configuration Audio/Video playback may not operate properly" I unistalled the itune from the pc and download the itune again but still same message come up.

    I'm having the same problem.  I have downloaded Itunes again but still the same problem.

  • "Itunes has detected a problem with your audio configuration. Audio/Video may not work properly".

    Turned my Dell running windows 7 off 2 days ago. Turned on today.  Launched ITunes and got message "Itunes has detected a problem with your audio configuration. Audio/Video may not work properly".
    All my albums are there but won't play.
    Deleted Itunes and reinstalled. Same as before.
    Any ideas ??

    Hey MrCurwen,
    I was able to find an article that included the same error message you're experiencing:
    iTunes for Windows: iTunes cannot run because it detects an issue with QuickTime
    http://support.apple.com/kb/TS1371
    According to that article, if you see the error message "iTunes cannot run because it has detected a problem with your audio configuration," QuickTime may need to be reinstalled. Please follow the steps below to uninstall QuickTime and then download and install QuickTime using the QuickTime standalone Installer.
    On the Start menu, click Control Panel.
    Follow the steps appropriate for your Windows operating system below.
    Windows Vista and Windows 7: Click Uninstall a program (or if using Windows Vista's Classic View of the Control Panel, click Programs and Features) and select QuickTime in the list of currently installed programs.
    Click the Remove button (or Uninstall for Windows Vista and Windows 7) and follow the prompts to remove QuickTime from your computer.
    Download QuickTime. Note: There are two options for downloading QuickTime, be sure to select the option that does not include iTunes.
    During the download:
    If you choose to run the installer, proceed to the next step.
    If you choose to save the download, double click the QuickTimeInstaller file, then proceed to next step.
    Follow the on-screen instructions to install QuickTime.
    Reopen iTunes.
    Cheers,
    David

  • I have a problem with my bluetooth and Wi-Fi, it seems not to connect and just keep searching

    i have a problem with my bluetooth and Wi-Fi, it seems not to connect and just keep searching

    Hello there, charles.
    The following Knowledge Base article offers up some great information and links in regards to things that can interfere with both Bluetooth and Wi-Fi:
    Wi-Fi and Bluetooth: Potential sources of wireless interference
    http://support.apple.com/kb/ht1365
    Additionally the following articles offer specific steps for each:
    iOS: Troubleshooting Bluetooth connections
    http://support.apple.com/kb/TS4562
    and
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Hello, i have a problem with nvidia quadro k4200. in AE CS6 is not compatible? Why? Please??

    hello, i have a problem with nvidia quadro k4200. in AE CS6 is not compatible? Why? Please??

    jasonf18090788 wrote:
    i saw in the site Adobe that the video card is compatible with AE and Pr, but not work.
    Where did you see that? It's not on the list for AE: System requirements | After Effects
    Keep in mind that After Effects only uses the GPU for one, obsolete thing. GPU matters very little for AE. See this: GPU (CUDA, OpenGL) features in After Effects CS6 and After Effects CC

  • I updated my browser to the last versoin of firefox (31). But I have a problem with mozilla. why tha toolbar of alexa does not work on it?

    Hello...
    I updated my browser to the last versoin of firefox (31). But I have a problem with mozilla. why tha toolbar of alexa does not work on it?

    After a quick search in the addon.mozilla.org page, it looks like that add on is still compatible with version 31. Please try to [[Re-enable add-ons that were disabled when updating Firefox]] or make a back up of the add on folder in the profile folder and reinstall the add on. [[Back up and restore information in Firefox profiles]]

  • With my new version of numbers it is not possible to print the celnumbers. That is difficult for my bookkeeping.

    with my new version of numbers it is not possible to print the celnumbers. That is difficult for my bookkeeping.
    How to solve this problem?

    Hi Jaspers,
    A Header Row and a Header Column might work for you
    Or two extra Tables to show the Row and Column labels
    Regards,
    Ian.

  • Parameter validation failed. It is not possible to provide valid values for all parameters

    I'm trying to test passing in parameter values from the URL.    I have RS 2008 .   I created an ultrasimple report based on a stored procedure output.  There is no validation, No available values, No default values.  
    I'm trying to run the report like this:
    /Reports/Pages/Report.aspx?ItemPath=%2fProduction%2fDBA+Reports%2fTest&iTest=1
    I get:
    Parameter validation failed. It is not possible to provide valid values for all parameters. (rsParameterError)
    the one int parameter is iTestId 
    The RS log file says the following:
    processing!ReportServer_0-54!9138!01/25/2013-09:22:51:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Parameter validation failed. It is not possible to provide valid values for all parameters., ;
      Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Parameter validation failed. It is not possible to provide valid values for all parameters.
    What am I missing?

    Hi F-ram,
    From your description, you want to pass multiple parameters via URL, right? To pass multiple parameters through URL, we can use an ampersand (&) to separate them. For example, I have a report with two parameters p1 and p2. The report is deployed in a
    folder on the Report Server. When I navigate to the report on the Report Server, I can see the report URL is http://localhost/ReportServer_SQL2008NEW/Pages/ReportViewer.aspx?%2fFolder%2fReport&rs:Command=Render.
    If I need to pass parameters through URL, I can just add &p1=value1&p2=value2 at the end of the URL and the entire URL would be http://localhost/ReportServer_SQL2008NEW/Pages/ReportViewer.aspx?%2fFolder%2fReport&rs:Command=Render&p1=value1&p2=value2
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    Charlie Liao
    TechNet Community Support

Maybe you are looking for