Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-3791

SDNR GUI has a problem editing fields which allow negative numbers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • Jakarta Release
    • apps - sdnr
    • None

      Step to reproduce:-

      Once you delete the numbers and only '-' is there in the field, the field turns to NaN and after that the error is not fixable, you have to go back one level and start editing again.

      In the GUI to: ManagedElement[id]/GNBCUCPFunction[id]/NRCellCU[id]/NRFreqRelation[id]/attributes

      Try to edit say ‘qQualMin’ which has a range of -34..-3 | 0

      Issue can be reproduce with O-RAN-SC RU Simulator (Version:  http://nexus3.o-ran-sc.org:10002/o-ran-sc/nts-ng-o-ran-ru-fh:1.3.3)

      Workaround:

      Delete '-' from the number before deleting other digits

      Start with numbers and then add - to it.

      Add '-' after you have added the number

      Solution:-

      Number type casting causing the issue.

      • in apps/configurationApp/src/components/uiElementNumber.tsx
        • Replace type numberInputProps = BaseProps<number>; 
        • with type numberInputProps = BaseProps<any>;
      • and props.onChange(num); with props.onChange(data);

       

            Unassigned Unassigned
            projitaarna projitaarna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: