Search:

Type: Posts; User: Bear89

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Re: Managing missing properties in JSON response

    Yay, I've worked it out, I can bypass the empty iterations using:

    If IsNothing(service.explanation) Then
  2. Replies
    6
    Views
    519

    Re: Moving complete rows between DataGridViews

    Great, thanks tg, works! And now I can make the overall code move the data between rows, using copy and paste. But I still would love to be able to restore the direct paste function in my...
  3. [RESOLVED] Managing missing properties in JSON response

    I'm hoping someone can help with managing conditionally missing properties in my JSON response.

    Here is a typical response, where I will usually have several "id"s, some of which contain the...
  4. Replies
    6
    Views
    519

    Re: Moving complete rows between DataGridViews

    Thanks sapator, point noted and the empty string reference read, though I have content in the clipboard, and the method appears to work, though I have had difficulty splitting the clipboard contents....
  5. Replies
    6
    Views
    519

    Re: Moving complete rows between DataGridViews

    OK, thanks Peter, good tips.

    I have explored a little further, and I find that I can copy a data row to clipboard, and I can see, and split the clipboard content using


    Dim clipbd =...
  6. Replies
    6
    Views
    519

    Moving complete rows between DataGridViews

    I really can't find a good way to do this. I have two tables with identical columns, one for open orders (AcctDetailsTableAdapter), the second for completed orders (Acctdetails_UnpaidTableAdapter),...
  7. Replies
    6
    Views
    576

    Re: Dealing with empty rows

    Thanks ob and tg, I have solved it, was as ob suggested that the row was being deleted in a previous iteration and an update of the dg solved it. Great to have the help of the forum once again!
  8. Replies
    6
    Views
    576

    Re: Dealing with empty rows

    Iím not sure but it sort of makes sense that this might be possible, and the dg is bound to another table. When I run the loop with a break at this line the exception is thrown at the first time the...
  9. Replies
    6
    Views
    576

    Re: Dealing with empty rows

    I am trying options to detect the empty or null row so that the exception is not thrown. Obviously the syntax is not correct. So I need help in how to write a line which will detect this empty row so...
  10. Replies
    6
    Views
    576

    [RESOLVED] Dealing with empty rows

    I'm stumped on how to handle an empty row as I iterate through a collection. The problem code is:

    For Each datarowview In Grid2.View
    If Not IsDBNull(datarowview) And Not...
  11. Replies
    6
    Views
    472

    Re: Deserialising a JSON array - null values

    Thanks tg, thats perfect!
  12. Replies
    6
    Views
    472

    Re: Deserialising a JSON array - null values

    But I thought I was doing that with the ĎIf medicalEvent.patient.status.code IsNot Nothingí line - or should I be doing this another way? Do I use optional chaining or hasownproperty???
  13. Replies
    6
    Views
    472

    Re: Deserialising a JSON array - null values

    Thanks TG, the exception is:


    System.NullReferenceException: 'Object reference not set to an instance of an object.'

    and yes, you are correct, the elements are missing in the response, but not...
  14. Replies
    6
    Views
    472

    Deserialising a JSON array - null values

    Dear Guys,

    I'm hoping for some help with a conditional null value in a return message for a JSON nested array. Here is my code:


    For Each medicalEvent In...
  15. Re: Datepicker editing in WPF datagrid with MSAccess .mdb database

    Thanks Jm, at the moment no exception is being thrown, and I have tried a number of options but nothing is thrown. But the data of the row in question are simply not updated to the database when a...
  16. Re: Datepicker editing in WPF datagrid with MSAccess .mdb database

    OK thanks jm, I have checked the parent Access setting and it is set to No for the Date:Required field.
  17. Datepicker editing in WPF datagrid with MSAccess .mdb database

    Dear Guys,

    I have been developing a wpf application with a MS Access .mdb database. The pain window includes a range of textboxes from large data table, with 3 child tables to the main table, all...
  18. Replies
    13
    Views
    1,179

    Re: NullException on delete in WPF textbox

    OK, I have made some progress but would really love some help. First, it seems the datepicker can switch between normal and editable mode, and that influences whether it will accept new data....
  19. Replies
    13
    Views
    1,179

    Re: NullException on delete in WPF textbox

    I disagree. The difficulty here is getting wpf to accept data and this might still relate to a null issue or perhaps a related issue, very much related to the discussion so far and to the topic.
    ...
  20. Replies
    13
    Views
    1,179

    Re: NullException on delete in WPF textbox

    Thanks pg and jmc, I have allowed null values in the access database and these are now accepted, so excellent.

    I still have a problem though with date fields, which wont allow entries in my WPF...
  21. Replies
    2
    Views
    489

    Re: New JSON syntax - Solved!

    A very measured response from you, thanks jmc!
  22. Replies
    2
    Views
    489

    [RESOLVED] New JSON syntax - Solved!

    Guys, I have encountered a new type of JSON which I am unsure how to handle. The example I need to code to is:

    {
    "transactionId": [
    "izoz"]
    }


    The JSON Validator indicates this is a...
  23. Replies
    6
    Views
    518

    Re: JSON nested array - retrieving values

    Ah, I see it now, I just need to specify the index - eg m3 = participant.service(1)

    Thanks guys.
  24. Replies
    6
    Views
    518

    Re: JSON nested array - retrieving values

    Thanks Peter, perfect, now deserialises, but I still can't get the value -


    23/05/2022 9:13:26 PM : Name: Credicare Fund Limited

    23/05/2022 9:13:26 PM : Id: CHF

    23/05/2022 9:13:26 PM :...
  25. Replies
    6
    Views
    518

    Re: JSON nested array - retrieving values

    Hmm, I tried that before, and have gone back to it as this:


    Public Class GPRResponse
    Public Property participant As IEnumerable(Of participant)
    End Class

    Public Class...
  26. Replies
    6
    Views
    518

    JSON nested array - retrieving values

    Iím having difficulty extracting data from a particular JSON response which has nested arrays. I can easily access the first level data, but not the second.

    My declarations are:

    Public Class...
  27. Replies
    13
    Views
    1,179

    Re: NullException on delete in WPF textbox

    Thanks tg, so here is the update code:


    Public Sub UpdateTA()

    Try
    Dim PatientDataSet As Goldie.patientDataSet = CType(Me.FindResource("PatientDataSet"),...
  28. Replies
    13
    Views
    1,179

    Re: NullException on delete in WPF textbox

    No, not crashing, the exception is simply thrown when I try to access or save data from cells that have been deleted.
  29. Replies
    13
    Views
    1,179

    Re: NullException on delete in WPF textbox

    Thanks JMc, the reason I have shown no code is because there is none. These text boxes have no specific code added, ie they remain as they did at the start of the project. However, they are bound to...
  30. Replies
    13
    Views
    1,179

    NullException on delete in WPF textbox

    I have searched everywhere for a good solution to this problem but I can't find one. I have a range of controls in Datagridtables and textboxes on my WPF mainwindow, and when I delete any value I am...
  31. Replies
    4
    Views
    458

    Re: Retrieving values from an array

    Perfect, thanks tg and dday!
  32. Replies
    4
    Views
    458

    Re: Retrieving values from an array

    Well I was wondering if thats the case, because I had thought my syntax was OK, but may just be a string?
  33. Replies
    4
    Views
    458

    Retrieving values from an array

    I know this must be simple but I can't work it out. I have stored a range of data in an array, with variables according to the following construction, stored in a datagridtable:

    ...
  34. Replies
    5
    Views
    465

    Re: Deserialising a JSON array

    Excellent, thanks so much Karen and pd. In the end the List and other options didn't work pd as the need for deserialization and the need for full string to access each element were in conflict....
  35. Replies
    5
    Views
    465

    Re: Deserialising a JSON array

    If I try to do that with my current declarations I can't reach the array elements. For example, I can retrieve:


    memberNumber =...
  36. Replies
    5
    Views
    465

    Deserialising a JSON array

    Dear Friends,

    After much help, I have progressed well with my project but I am now having trouble reading data from a Webservice JSON response. I have created classes for all components of the...
  37. Replies
    2
    Views
    672

    Re: No binding data in bound table in WPF

    And just for completeness, here is my entire debug output - hte only other errors are the dll exceptions, which dont seem to be the key issue?:


    'Goldie.exe' (CLR v4.0.30319: DefaultDomain):...
  38. Replies
    2
    Views
    672

    Re: No binding data in bound table in WPF

    I've managed to find 2 errors in the debug, and these relate to the troublesome table and to binding:


    System.Windows.Data Error: 40 : BindingExpression path error: 'Table1Acctdetails_Unpaid'...
  39. Replies
    2
    Views
    672

    No binding data in bound table in WPF

    Not sure if anyone can help me with this one. I have 1 parent and 3 child tables in my WPF design, with the 3 child tables bound to the parent using drag and drop from the datasource. However, one of...
  40. Re: Unwanted duplications in a nested JSON array

    pd: perfectly simple and simply perfect
Results 1 to 40 of 115
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width