Exceptions using Lynq queries in a lightswitch button _execute method.

I'm not sure if this is a LightSwitch or a ComponentOne FlexGrid issue so I'm reporting it on both sites.The following _Execute fails if I use the Dispatch with the Lynq query.
private readonly List<Int32> DebitGPAccountRowindices = new List<int>();
partial void SetAllDebitGPAccounts_Execute()
Dispatchers.Main.BeginInvoke
() =>
//Modify the Column Values for collected Row Indices
foreach (var t in DebitGPAccountRowindices)
var MyAcct = from g in this.DataWorkspace.SPDCData.GPAccounts
where ( g.ConceptID == ConceptId
&& g.ApplicationId == 1
&& g.GLDepartment == Department
&& g.GLAccount == TargetGLAccount)
select g;
var MyRowToUpdate = MyAcct.FirstOrDefault();
if (MyRowToUpdate != null)
_flex[t, "DebitGLAccountId"] = GLAccountId;
If I use the dispatch I get a System.InvalidOperationException at the line -->var MyRowToUpdate = MyAcct.FirstOrDefault();
{System.InvalidOperationException: It is not valid to execute the operation on the current thread.
   at Microsoft.LightSwitch.Threading.DispatcherExtensions.VerifyAccess(IDispatcher dispatcher)
   at Microsoft.LightSwitch.DataServiceQueryable.ScalarImpl[T](IDataServiceQueryable`1 source, Int32 takeCount, Func`2 scalarFunction)
   at Microsoft.LightSwitch.DataServiceQueryable.FirstOrDefault[TSource](IDataServiceQueryable`1 source)
   at LightSwitchApplication.DepartmentFeeFlexibleGrid.<SetAllDebitGPAccounts_Execute>b__1()
   at Microsoft.LightSwitch.Threading.ClientGenerated.Internal.MainDispatcher.<>c__DisplayClass2.<BeginInvoke>b__0()}
If I remove the dispatch and just run it I get the following error at the line -->_flex[t, "DebitGLAccountId"] = GLAccountId;"
{System.UnauthorizedAccessException: Invalid cross-thread access.
   at MS.Internal.XcpImports.CheckThread()
   at System.Windows.DependencyObject.GetValueInternal(DependencyProperty dp)
   at System.Windows.FrameworkElement.GetValueInternal(DependencyProperty dp)
   at System.Windows.DependencyObject.GetValue(DependencyProperty dp)
   at C1.Silverlight.FlexGrid.C1FlexGrid.get_ShowErrors()
   at C1.Silverlight.FlexGrid.Row.UpdateErrors()
   at C1.Silverlight.FlexGrid.Row.InvalidateCell(Column c)
   at C1.Silverlight.FlexGrid.Row.SetData(Column col, Object value)
   at C1.Silverlight.FlexGrid.Row.set_Item(Column col, Object value)
   at C1.Silverlight.FlexGrid.GridPanel.set_Item(Int32 row, Column col, Object value)
   at C1.Silverlight.FlexGrid.C1FlexGrid.set_Item(Int32 row, Column col, Object value)
   at C1.Silverlight.FlexGrid.C1FlexGrid.set_Item(Int32 row, String colName, Object value)
   at LightSwitchApplication.DepartmentFeeFlexibleGrid.SetAllDebitGPAccounts_Execute()
   at LightSwitchApplication.DepartmentFeeFlexibleGrid.DetailsClass.MethodSetProperties._SetAllDebitGPAccounts_InvokeMethod(DetailsClass d, ReadOnlyCollection`1 args)
   at Microsoft.LightSwitch.Details.Framework.Internal.BusinessMethodImplementation`2.<TryInvokeMethod>b__5()
   at Microsoft.LightSwitch.Utilities.Internal.UserCodeHelper.CallUserCode(Type sourceType, String methodName, String instance, String operation, ILoggingContext context, Action action, String additionalText, Func`1 getCompletedMessage, Boolean tryHandleException,
Boolean swallowException, Exception& exception)}
Does anyone have an idea what is happening here?
Scott Mitchell

Your database transaction should not span two buttons. The two buttons will be called on separate requests -- that is, separate calls to the server -- and you'll have a database connection dangling out there, potentially locking other people out of certain tables/rows until the user clicks the right button.
Note also that there is a commit() method in the JDBC API.
You might want to spend some time studying some example applications.

Similar Messages

  • I have lost the use of the 'forward' and 'back' button

    On Win 7 I have lost the use of the forward and back button - both are greyed out - except on this page ??? when I leave this page the greyed out appears on all tabs or links in use. I am using Firefox 3.6.16. To get to this page I have 7 tabs open at present and all ( except this one - odd! ) are greyed out.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.com/kb/Firefox+crashes
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter)

  • PSE10 Organizer crashes when using the "find a missing person" button

    I have been using PSE10 for about six months and have about 10500 images in the catalog, mostly digital but also some scanned slides I have been gradually adding.  All images have been added using the "find files" button.  I have been making use of tagging by using the people recognition routine and have reached the point where PSE10 says all people have been found.  Since then I have gone through about 1000 individual images using the "find a missing person" button with good success  until recently.  Now when I try to save the tag after using the button Organizer crashes with the message "Elements 10 Organizer has stopped working.  A problem has caused the program to stop working correctly.  Windows will close the program and will notify you if a solution is available".  I have tried optimizing and repairing the catalog without sucess.  I have also tried uninstalling and reinstalling PSE10, also without success.  The catalog is in a custom location but has been since shortly after I started using PSE10 and well before this problem started.  With the amount of time and effort spent doing this tagging I would not like to have to start over with a new catalog if a solution can be found.  My computer is Vista 64-bit with 8GB memory.  This problem is driving me nuts!! HELP!!

    Log Name: 
    Application
    Source:   
    Application Error
    Date:     
    6/17/2012 2:43:28 PM
    Event ID: 
    1000
    Task Category: (100)
    Level:    
    Error
    Keywords: 
    Classic
    User:     
    N/A
    Computer: 
    KenMary-office
    Description:
    Faulting application PhotoshopElementsOrganizer.exe, version 10.0.0.0, time stamp 0x4e5e9821, faulting module BreezeDB.dll, version 2.0.1.1, time stamp 0x4c7c52ec, exception code 0xc0000005, fault offset 0x00023fa6, process id 0x1318, application start time 0x01cd4cd20c7d9d2c.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2012-06-17T21:43:28.000Z" />
    <EventRecordID>93684</EventRecordID>
    <Channel>Application</Channel>
    <Computer>KenMary-office</Computer>
    <Security />
      </System>
      <EventData>
    <Data>PhotoshopElementsOrganizer.exe</Data>
    <Data>10.0.0.0</Data>
    <Data>4e5e9821</Data>
    <Data>BreezeDB.dll</Data>
    <Data>2.0.1.1</Data>
    <Data>4c7c52ec</Data>
    <Data>c0000005</Data>
    <Data>00023fa6</Data>
    <Data>1318</Data>
    <Data>01cd4cd20c7d9d2c</Data>
      </EventData>
    </Event>
    Thanks in advance for any help you can give me.  There were several error entries for PSE all of which had the same description up to but not including "process ID".  This was the result of restarting PSE10 several times.  Information above is from the last restart.

  • How to log the exception using Log action in Oracle Service Bus

    Hi,
    Whenever an exception is raised how to log the exception using Log action in oracle service bus.After logging where I have to find the logged message.

    It would be in the log file for the managed server which ran the request. If you are logging the message at a lower level than your app server, however, you won't see it. You should be logging the exception at Error level.

  • Application Exception using @Application not working

    I'm trying to create 2 business application exception using the @Application annotation on my 2 java exception class. The first exception is a StarException class that extends java.lang.Exception (per ejb 3.0 spec). Below is snippet of the class.
    @ApplicationException(rollback=true)
    public class StarException extends Exception {...}.
    As you can tell that this is a check exception and will rollback transaction when it occurred. I have another exception class called StarRuntimeException that extends java.lang.RuntimeException. This is also mention on ejb 3.0 spec and is useful if you don't want to catch the exception on the server side and just throw it and the client will receive such application exception class. Below is a snippet of the class ...
    @ApplicationException(rollback=false)
    public class StarRuntimeException extends RuntimeException {...}.
    By the way I'm using this exception in my wls 10.3 webservices stateless beans (jax-rpc 1.1). Some of the methods throws these 2 exceptions.
    There are 2 problems with this application exception during runtime on the client side.
    1. Regarding StarException, the client can catch this exception when the webservice method throws this exception. The problem is that the error messages is null. Tried both getMesssage() and getLocalizedMessage() are all null.
    2. Regarding StarRuntimeException, the generated client stubs and artifacts does not even throw this exception, therefore it will not the caught. This exception is wrapped inside RemoteException instead.
    Your help are needed. Thanks

    Ok. I figured it out. The url rewrite was missing in the config. Put it there and its working now.

  • Can we use multiple queries on one template

    Can we use multiple queries on one template

    Hi,
    if you're using data templates for your data set, you
    can put multiple queries in the XML data template.
    The queries may then be linked (or not) by the "link
    name" tag ...
    Grtz.Following you answer here...do you know eventually how/if possible to preview a report (with XMLP Desktop) that is using data templates for the data set?
    Thanks,
    Liviu

  • Can't use the "send by e-mail" button on forms created in Acrobat Pro 9 with Firefox

    I created a form in Acrobat Pro 9.5.2 with a "send by e-mail" button as usual (not using LiveCycle Designer). Since a few months, users cannot send forms using that button USING FIREFOX works fine in Explorer. I've been creating and using those forms since 2 years whitout any problems but now this is A BIG PROBLEM for our office as all our reservation forms uses this technology.
    Steps to reproduce bug:
    1. create a form using Acrobat Pro. add an action button " send a form". send the Entire PDF form not just FDF. go in advance tool to give all rights to end-users (in French it's "étendre les fonctions d'adobe reader" I think it’s enable the usage rights for Reader ion English.)
    2.publishing the form on my website (or send by e-mail to someone who use reader)
    3. filling the form
    Results:
    when the user fill the form he can't send it by e-mail using the button. Nothing happens when hitting that button. It is not possible to save the document as well. Nothing can be done, not even printing or saving it. I've tried almost all browsers I know and nothing works.
    Expected results:
    the form should be send by e-mail (as an attachment in general) like before. please help me! this is really important, our office have a lot of calls and we are just 2 people here (non-profit organization). should we buy Acrobat Pro X ?
    I can send you the form, my e-mail is rgelinas at canadianclub-montreal dot ca
    thanks all!

    When your customers opened the PDF form (which was as an email attachment) on iPads, it is highly likely that Apple Mail (not Adobe Reader for iOS) was displaying the preview of the PDF form.   Please note that Apple products on iPad/iPhone (e.g. Apple Mail, iBooks, Safari) do not render field contents or annotations (sticky notes, highlight, underline, strikeout, freehand drawing, etc.) in PDF documents.
    The Mail sections of the following FAQ documents describe how to open PDF attachments in Adobe Reader for iOS.
    For iPad, see How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
    For iPhone, see How to open PDF documents in Adobe Reader for iOS (iPhone on iOS 7 version)
    Please let us know if you have additional questions.

  • Ipod 5th generation will not turn on, charge, or connect to macbook laptop. i was using it for music then all of a sudden the screen went black and was unresponsive. i have tried using other cords. also my home button is broken. someone please help!

    ipod 5th generation will not turn on, charge, or connect to macbook laptop. i was using it for music then all of a sudden the screen went black and was unresponsive. i have tried using other cords. also my home button is broken. someone please help!

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable              
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • I need an application that will turn off my iPhone on the home screen just by a one click since my power button has sank and is no longer working--anyone have ideas?? I don't like having to use assistive touch and hit three buttons to lock my screen

    I need an application that will turn off my iPhone on the home screen just by a one click since my power button has sank and is no longer working--anyone have ideas?? I don't like having to use assistive touch and hit three buttons to lock my screen

    No such app exisits or can exist.  Apple doesn't allow 3rd party apps to access core functions of the phone.  Time to get your phone replaced or repaired if assistive touch doesn't needs your needs.

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • New iPad 5 pixels getting stuck (Rewind, Play, Fast Forward) when using apple tv. Leave ghost buttons on screen. Do I return? Please advise.

    New iPad 5 pixels getting stuck (Rewind, Play, Fast Forward) when using apple tv. Leave ghost buttons on screen. Do I return? Please advise.

    edit: iPad 4

  • Using a vector graphic for a button

    Adobe Photoshop, Illustrator, and Encore CS5, everything is patched, Windows 7 64-bit
    I have been reading various posts, and either not seeing or not understanding something about using a vector graphic as a button on a menu.
    I drew a one-color shape in Illustrator, saved it as EPS and PNG and used it in a menu designed in Photoshop. When I preview it in Encore or burn a DVD, the graphic looks awful. And I'd like to use highlighting with it so it changes color when selected but that is another problem....
    To start the menu, I used the Photoshop preset NTSC DV Widescreen which has a pixel aspect ratio of 1.21. Then I added background graphics and so on. Each button is contained in a layer group named (+)PlayAll, etc. In each layer group is a text layer that doesn't have a prefix (e.g., Play All) and another layer with the vector or PNG named (=1)kv, which is the name of the EPS or PNG file.
    The behavior is fine. The graphic moves to indicate which menu item is selected, the text is constant, never changes.
    In Photoshop, the graphic looks fine but when I preview it in Encore it looks crappy and pixelated. What do I do?

    Part of the problem is I have no idea what some of these terms mean ... "2-bit indexed", ... The first one might mean an object that has one color,
    It is not the same as one color, and yes, it probably means more than any of us intend.  See  Encore help regarding button subpictures, in particular the part regarding using Photoshop to create button subpictures.
    The latter includes "(Technically, the subpicture overlay is a two‑bit indexed image.)," but you don't need to understand the technical meaning (they don't explain it anyway).  You do need to understand the liimitations they explain there,  For example, under "solid colors only," they say "Elements on these layers must use solid colors and sharp edges. Use one solid color per layer. Do not use gradients, feathering, or anti-aliasing on the subpicture layers. Color gradations are not possible in subpictures."
    "sub-picture highlight" ... the second one is probably made up.
    Heh, heh.  Searching that in Encore help (which I often find lacking) finds the page on Button Subpictures.  I agree that some of the terms, whether they are from the DVD specs or Sonic's applications (on which Encore is based), can make it difficult to look things up.
    "vector layer".... I searched Photoshop help for "vector layer" and got nothing. There is such a thing as a vector mask on a layer but I have no clue what a vector layer is.
    You're correct - vector mask.  Within a button group, the vector mask will be part of a layer, so I think of it as the button group "vector mask" layer.  That's part of why I pointed to using a library menu and editing in photoshop so you could compare what you have to what a template looks like.
    Please suggest which Encore library menu I can try. I opened a couple and couldn't figure out how they worked.
    In the General set, pick the Sunset menu.  Edit in Photoshop.  Expand the "(+) play movie" layer.  The "button vector mask" (the dark area) is in the layer called "button."  Notice that it does not have a (=1) or other indicator that it is a highlight.  In other words, it will just sit there, in whatever color is defined, and will not be a highlight.  If you put it in a layer that has one of the highlight indicators (the =1, =2 etc), it will then be subject to the subpicture highlight limitations.
    You might try your graphic in such a non-subpicture layer, and compare its appearance to putting it in a subpicture layer.
    Jeff Bellune's book (he's a moderator here) is still very applicable.  While some things have change, the basics haven't.
    But, hey, Jeff.  Why haven't you updated your book yet?  Inquiring minds want to know!

  • Problem occured when create a tree table for master-detail view objects using SQL queries?

    I am programming a tree table for master-detail view objects using SQL queries and these 2 view objects are not simple singel tables queries, and 2 complex SQL are prepared for master and view objects. see below:
    1. Master View object (key attribute is SourceBlock and some varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK,                   
            sum(                   
             case when cntr_list.cntr_size_q = '20'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr20 ,                   
            sum(                   
             case when cntr_list.cntr_size_q = '40'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr40 ,                   
             sum(                   
             case when cntr_list.cntr_size_q = '45'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr45                    
    FROM (       
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,       
               scn.CNTR_SIZE_Q,        
               count(scn.CNTR_SIZE_Q) AS cntr_qty        
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2       
        WHERE       
        scm.cmr_n = scn.cmr_n             
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                 
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                 
        AND scm.shift_mode_c = :ShiftModeCode                           
        AND scm.end_terminal_c = :TerminalCode      
        AND scm.start_terminal_c = yb1.terminal_c                  
        AND scm.start_block_n = yb1.block_n                  
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                  
        AND scm.end_terminal_c = yb2.terminal_c                  
        AND scm.end_block_n = yb2.block_n                  
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n           
        AND scn.status_c not in (1, 11)             
        AND scn.shift_type_c = 'V'             
        AND scn.source_c = 'S'       
        GROUP BY yb1.BLOCK_M, scn.CNTR_SIZE_Q       
    ) cntr_list       
    GROUP BY cntr_list.SOURCE_BLOCK
    2. Detail View object (key attributes are SourceBlock and EndBlock and same varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK,                
            sum(                     
             case when cntr_list.cntr_size_q = '20'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr20 ,                     
            sum(                     
             case when cntr_list.cntr_size_q = '40'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr40 ,                     
             sum(                     
             case when cntr_list.cntr_size_q = '45'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr45                      
    FROM (         
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,     
               yb2.BLOCK_M as END_BLOCK,  
               scn.CNTR_SIZE_Q,          
               count(scn.CNTR_SIZE_Q) AS cntr_qty          
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2         
        WHERE         
        scm.cmr_n = scn.cmr_n               
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                   
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                   
        AND scm.shift_mode_c = :ShiftModeCode                             
        AND scm.end_terminal_c = :TerminalCode        
        AND scm.start_terminal_c = yb1.terminal_c                    
        AND scm.start_block_n = yb1.block_n                    
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                    
        AND scm.end_terminal_c = yb2.terminal_c                    
        AND scm.end_block_n = yb2.block_n                    
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n             
        AND scn.status_c not in (1, 11)               
        AND scn.shift_type_c = 'V'               
        AND scn.source_c = 'S'         
        GROUP BY yb1.BLOCK_M, yb2.BLOCK_M, scn.CNTR_SIZE_Q         
    ) cntr_list         
    GROUP BY cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK
    3. I create a view link to create master-detail relationship for these 2 view objects.
    masterview.SourceBlock (1)->detailview.SourceBlock (*).
    4. I create a tree table using these 2 view objects with master-detail relationship.
    When I set default value for variable bindings of these 2 view objects and the matching records exist, tree table can work well. I can expand the master row to display detail row in UI.
    But I need to pass in dymamic parameter value for variable bindings of these 2 view objects, tree table cannnot work again. when I expand the master row and no detail row are displayed in UI.
    I am sure that I pass in correct parameter value for master/detail view objects and matching records exist.
    Managed Bean:
            DCIteratorBinding dc = (DCIteratorBinding)evaluteEL("#{bindings.MasterView1Iterator}");
            ViewObject vo = dc.getViewObject();
            System.out.println("Before MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            System.out.println("Before MasterView1Iterator ShiftModeCode="+ vo.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo.executeQuery();
            System.out.println("MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            DCIteratorBinding dc1 = (DCIteratorBinding)evaluteEL("#{bindings.DetailView1Iterator}");
            ViewObject vo1 = dc1.getViewObject();
            System.out.println("Before DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
            System.out.println("Before DetailView1Iterator ShiftModeCode="+ vo1.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo1.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo1.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo1.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo1.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo1.executeQuery();
            System.out.println("after DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
    5.  What's wrong in my implementation?  I don't have no problem to implement such a tree table if using simple master-detail tables view object, but now I have to use such 2 view objects using complex SQL for my requirement and variable bindings are necessary for detail view object although I also think a bit strange by myself.

    Hi Frank,
    Thank you and it can work.
    public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
                                                                              Number highSalary) {
            Row r = getCurrentRow();
            if (r != null) {
                RowSet rs = (RowSet)r.getAttribute("EmpView");
                if (rs != null) {
                    ViewObject accessorVO = rs.getViewObject();
                    accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
                    accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
                executeQuery();
    but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and  I have to change current row manually like below.
    any idea?
                DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
                ViewObject vo = dc.getViewObject();           
                vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
                vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
                vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
                vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
                vo.executeQuery();
                vo.setCurrentRowAtRangeIndex(0);
                ((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues();

  • I am using media queries and div will not centre on desktop version

    Hi,
    I am building a site for the first time using media queries. My problem is that I cannot get the header div (#layoutDiv1) to centre on the desktop version.
    I have pasted my code below, am I missing something?
    Any help would be great.
    Thanks, Alex.
    /* Mobile Layout: 480px and below. */
    .gridContainer {
      margin-left: auto;
      margin-right: auto;
      width: 100%;
      color: #FFF;
      background-color: #000;
    #LayoutDiv1 {
      clear: both;
      float: left;
      margin-left: 0;
      width: 90%;
      display: block;
      padding-top: 20px;
      padding-left: 20px;
      padding-right: 20px;
      padding-bottom: 20px;
    /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
    @media only screen and (min-width: 481px) {
    .gridContainer {
      width: 100%;
    #LayoutDiv1 {
      clear: both;
      float: left;
      margin-left: 0;
      width: 90%;
      display: block;
      padding-top: 20px;
      padding-left: 20px;
      padding-right: 20px;
      padding-bottom: 20px;
    /* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
    @media only screen and (min-width: 769px) {
    .gridContainer {
      width: 100%;
      text-align: left;
    #LayoutDiv1 {
      width: 1000px;
      padding: 20px;
      margin-right: auto;
      margin-left: auto;

    Because you don't have max-width to constrain the responsive design attributes from the tablet and phone are also then applied to the desktop because they are true.  Have you tried either setting a max-width or setting the clear and float to none in the desktop CSS?

  • There are a sample for loop data out using xpath-querie?

    hello,
    i have a web service that contains multiple rows. i transfered these data in a variable tInput. Now i want to transfer these data in a output variable.
    Is There a sample or tutorial, that shows how to loop data out of a variable (array) in a
    second variable using xpath-querie?
    regards,
    rala

    Hi,
    thanks for the Link, but it doesn't work at all.
    I have a variable tOutput with follow content:
    tOutput>
    <part name="parameters" >
    <SchedulForwardResponse>
    <SchedulForwardResult>
    <ArrayType>
    <plnnr>50001203</plnnr>
    <vornr>1</vornr>
    <starttime>20.08.2006 09:00:00</starttime>
    </ArrayType>
    <ArrayType>
    <plnnr>50001203</plnnr>
    <vornr>2</vornr>
    <starttime>20.08.2006 09:10:00</starttime>
    </ArrayType>
    <ArrayType>
    <plnnr>50001203</plnnr>
    <vornr>3</vornr>
    <starttime>20.08.2006 09:35:00</starttime>
    </ArrayType>
    </SchedulForwardResult>
    </SchedulForwardResponse>
    </part>
    </tOutput>
    I want to copy these content in the output Variable of my BPEL Prozess. But just the first <ArrayType> is copy to output:
    <ArrayTpe>
    <plnnr>50001203</plnnr>
    <vornr>1</vornr>
    <starttime>20.08.2006 09:00:00</starttime>
    </ArrayType>
    The other two <ArrayType> fail.
    I create 3 variables:
    <variable name="bufferOutput" messageType="ns0:SchedulForwardSoapOut"/> (MessageType of the invokeing WS)
              <variable name="count" type="xsd:integer"/>
              <variable name="n" type="xsd:integer"/>
    Count and n are counter for the while loop. Count is initial 1. For n i have follow expression:
    <assign name="prepareLoop">
    <copy>
    <from expression="ora:countNodes('bufferOutput','parameters','/ns0:SchedulForwardResponse/ns0:SchedulForwardResult/ns0:ArraySchedulType[1]')"></from>
    <to variable="n"/>
    </copy>
    </assign>
    In the BPEL Console i saw, that the value of n is1 and not 3 as i thought. When i set ora.countNodes to SchedulForwardResult n is null in the console.
    Does anybody try befor to copy such a content of a variable into another variable or has a idea how i can implement these?
    regards,
    rala

Maybe you are looking for

  • ALV to Excel Missing field content

    Hi Experts, I have a problem during dowloading process of ALV grid to Excel. For some reasons the last row is not completely filled with all field contents. I tried 2 things one is working fine and one is not working fine. 1) List --> Export ---> Spr

  • Word 2000 with SolMan and EWA issues

    Hi, Having a number of issues. It seems since updating SolMan to SP24 EHP1 i cannot open EWA reports in Word 2000 (updating to latest version is out of the question due to business politics). I have tried a number recomendations from OSS notes but no

  • Toshiba 19" LCD TV

    I purchased a Toshiba 19" LCD TV on Dec. 10, 2008.  Being that the item was not in stock, I arranged for an in-store pick-up on Dec. 17.  I picked up the tv up on Dec. 19.  Two days later I saw a Best Buy flyer stating that the set I had just picked

  • HOW DO I ENABLE COOKIES SO I CAN ACCESS MY GMAIL?

    My gmail account is not allowing me access because the computer is saying something about my cookie settings and I have NO EARTHLY IDEA WHAT IT IS ASKING ME TO DO! I've tried to follow your useless directions to change settings and am getting NOWHERE

  • Regarding ANSAL Feature

    Feature ANSAL --> ASAL (10 country grp)                         --> CSAL (02 Switerzland) ANSAL is doing Indirect valuation. Problem is, If I check the emp. salary in PA20, IT0008. The annual salary is visible. But for the same record in PA0008 the a