问:
Powershell print Excel list to PDF and configure print options
So I am trying to automatically print an excel file to PDF.
So far so good, the file is being exported to PDF:

```<code>$filepath = "\\fileppath\file.xlsm"
$fileitem = Get-Item $filepath
$printdate = (Get-Date).tostring("yyyyMMdd")

try {
    $excel = New-Object -ComObject Excel.Application
    $excel.Visible = $false
    $excel.DisplayAlerts = $false

    $wb = $excel.Workbooks.Open($fileitem.FullName)

    #Set PDF-printer
    #$excel.ActivePrinter = "Microsoft Print to PDF"
    $excel.ActivePrinter = "PDFPrint"
    #$wb.PaperSize = "A3"

    # Generate path of save destination PDF file
    $pdfpath = $fileitem.DirectoryName + "\" + $fileitem.BaseName + "_" + $printdate +
".pdf"

    # Save as PDF

  $wb.ExportAsFixedFormat([Microsoft.Office.Interop.Excel.XlFixedFormatType]::xlTypePDF, $pdfpath)

$wb.Close($false)

$excel.Quit()
}
finally {
     # Release objects
     $sheet, $wb, $excel | ForEach-Object {
         if ($_ -ne $null) {
             [void][System.Runtime.Interopservices.Marshal]::ReleaseComObject($_)
         }
    }
    stop-process -Id $PID
}
</code>```

And here the problems begin:
I can't figure out how to set the right printer with papersize A3 and i would like to see today's date and time in the upper corner.

I believe because I use the printasfixedformat method i don't really use a printer like "Microsoft Print as PDF" but that's the only option I found online.

I found the library ImportExcel but it didn't really help me.

Thanks in advance!

Body:
So I am trying to automatically print an excel file to PDF.
So far so good, the file is being exported to PDF:

$filepath = "\\fileppath\file.xlsm"
$fileitem = Get-Item $filepath
$printdate = (Get-Date).tostring("yyyyMMdd")

try {
    $excel = New-Object -ComObject Excel.Application
    $excel.Visible = $false
    $excel.DisplayAlerts = $false

    $wb = $excel.Workbooks.Open($fileitem.FullName)

    #Set PDF-printer
    #$excel.ActivePrinter = "Microsoft Print to PDF"
    $excel.ActivePrinter = "PDFPrint"
    #$wb.PaperSize = "A3"

    # Generate path of save destination PDF file
    $pdfpath = $fileitem.DirectoryName + "\" + $fileitem.BaseName + "_" + $printdate +
".pdf"

    # Save as PDF

  $wb.ExportAsFixedFormat([Microsoft.Office.Interop.Excel.XlFixedFormatType]::xlTypePDF, $pdfpath)

$wb.Close($false)

$excel.Quit()
}
finally {
     # Release objects
     $sheet, $wb, $excel | ForEach-Object {
         if ($_ -ne $null) {
             [void][System.Runtime.Interopservices.Marshal]::ReleaseComObject($_)
         }
    }
    stop-process -Id $PID
}

And here the problems begin:
I can't figure out how to set the right printer with papersize A3 and i would like to see today's date and time in the upper corner.

I believe because I use the printasfixedformat method i don't really use a printer like "Microsoft Print as PDF" but that's the only option I found online.

I found the library ImportExcel but it didn't really help me.

Thanks in advance!


来源: stackexchange

问:
Solution to get the stream of mirrored screen from AirServer and display in HTML5 videos
I'am developing a browser based application (React.js) specifically for my own custom touchscreen device. The OS of my touch screen device is window 10 enterprise edition.

I want to acheive screen sharing from laptop or mobile to my custom made touchscreen device.

I use

```<code>navigator.mediaDevices.enumerateDevices().then((devices) => { /**/})
</code>```

To successfully list all my mediasource such as Camera, Captured card (for HDMI cable connection).
It's work well and I can get the stream to assign to videoSource object.

However, I also want to do wireless screen sharing. So I install Airserver on my touchscreen device.
I wish I could get its listed as one of my mediasource in javascript. So I can mirror the screen shared from other mobile device in browser (Chrome) using HTML video tags.

But there is no AirServer as a media source available.

I really appreciate in advance for any suggestion or tips sharing.

Thank you

ContentLicense: CC BY-SA 4.0

Body:
I'am developing a browser based application (React.js) specifically for my own custom touchscreen device. The OS of my touch screen device is window 10 enterprise edition.

I want to acheive screen sharing from laptop or mobile to my custom made touchscreen device.

I use

navigator.mediaDevices.enumerateDevices().then((devices) => { /**/})

To successfully list all my mediasource such as Camera, Captured card (for HDMI cable connection).
It's work well and I can get the stream to assign to videoSource object.

However, I also want to do wireless screen sharing. So I install Airserver on my touchscreen device.
I wish I could get its listed as one of my mediasource in javascript. So I can mirror the screen shared from other mobile device in browser (Chrome) using HTML video tags.

But there is no AirServer as a media source available.

I really appreciate in advance for any suggestion or tips sharing.

Thank you


问:
Cant pass canvas image as byte array javafx
I want to pass java canvas image as byte array and then draw it again on canvas, i tried this, but buffer is like -1,-1,-8,-16,-1,-1,-8,-16,... and then when i convert byte array to image it has 0 width and height

```<code>WritableImage image = new WritableImage((int) drawCanvas.getWidth(), (int) drawCanvas.getHeight());
drawCanvas.snapshot(null, image);
byte[] buffer = new byte[(int) (drawCanvas.getWidth() * drawCanvas.getHeight() * 4)];
image.getPixelReader().getPixels(0,
        0,
        (int) drawCanvas.getWidth(),
        (int) drawCanvas.getHeight(),
        PixelFormat.getByteBgraInstance(),
        buffer,
        0,
        (int) drawCanvas.getWidth() * 4
);

System.out.println(Arrays.toString(buffer));

Image image1 = new Image(new ByteArrayInputStream(buffer));
System.out.println(image1.getWidth());
gc.drawImage(image1, 0, 0, image1.getWidth(), image1.getHeight());
</code>```

gc is drawCanvas GraphicsContext

Body:
I want to pass java canvas image as byte array and then draw it again on canvas, i tried this, but buffer is like -1,-1,-8,-16,-1,-1,-8,-16,... and then when i convert byte array to image it has 0 width and height

WritableImage image = new WritableImage((int) drawCanvas.getWidth(), (int) drawCanvas.getHeight());
drawCanvas.snapshot(null, image);
byte[] buffer = new byte[(int) (drawCanvas.getWidth() * drawCanvas.getHeight() * 4)];
image.getPixelReader().getPixels(0,
        0,
        (int) drawCanvas.getWidth(),
        (int) drawCanvas.getHeight(),
        PixelFormat.getByteBgraInstance(),
        buffer,
        0,
        (int) drawCanvas.getWidth() * 4
);

System.out.println(Arrays.toString(buffer));

Image image1 = new Image(new ByteArrayInputStream(buffer));
System.out.println(image1.getWidth());
gc.drawImage(image1, 0, 0, image1.getWidth(), image1.getHeight());

gc is drawCanvas GraphicsContext


问:
postgres table looks broken
My postgres looks really streng suddenly and I do not why! What are those pluses and dashes? The table is create via liquebase in spring. It looked normal before. Now my get requests are not working and I am not sure if it is relevant to this schema problem.

```<code><?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
                      https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.9.xsd">
    <changeSet id="create_questionnaire_entity_11" author="Iman Gharib">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="questionnaire_entity"/>
            </not>
        </preConditions>
        <createTable tableName="questionnaire_entity" schemaName="public">
            <column name="id" autoIncrement="true" type="bigint"/>
            <column name="patient_number" type="varchar"/>
            <column name="questionnaire_id" type="varchar"/>
            <column name="received_date" type="datetime"/>
            <column name="question_type" type="varchar"/>
            <column name="question_text" type="varchar"/>
        </createTable>
        <addPrimaryKey tableName="questionnaire_entity" columnNames="id"/>
    </changeSet>
    <changeSet id="extend_text_size_2" author="Iman Gharib">
        <modifyDataType
                columnName="question_text"
                newDataType="varchar(2000)"
                tableName="questionnaire_entity"/>
    </changeSet>
</databaseChangeLog>
</code>```

select * from the table:

```<code>  id  | patient_number |      questionnaire_id       |      received_date      | question_type |

                               question_text

------+----------------+-----------------------------+-------------------------+---------------+-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
</code>```

Title: postgres table looks broken

Body:
My postgres looks really streng suddenly and I do not why! What are those pluses and dashes? The table is create via liquebase in spring. It looked normal before. Now my get requests are not working and I am not sure if it is relevant to this schema problem.

<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
                      https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.9.xsd">
    <changeSet id="create_questionnaire_entity_11" author="Iman Gharib">
        <preConditions onFail="MARK_RAN">
            <not>
                <tableExists tableName="questionnaire_entity"/>
            </not>
        </preConditions>
        <createTable tableName="questionnaire_entity" schemaName="public">
            <column name="id" autoIncrement="true" type="bigint"/>
            <column name="patient_number" type="varchar"/>
            <column name="questionnaire_id" type="varchar"/>
            <column name="received_date" type="datetime"/>
            <column name="question_type" type="varchar"/>
            <column name="question_text" type="varchar"/>
        </createTable>
        <addPrimaryKey tableName="questionnaire_entity" columnNames="id"/>
    </changeSet>
    <changeSet id="extend_text_size_2" author="Iman Gharib">
        <modifyDataType
                columnName="question_text"
                newDataType="varchar(2000)"
                tableName="questionnaire_entity"/>
    </changeSet>
</databaseChangeLog>

select * from the table:

  id  | patient_number |      questionnaire_id       |      received_date      | question_type |

                               question_text

------+----------------+-----------------------------+-------------------------+---------------+-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


问:
value set with Conditional Validation in Yup vuejs
I have a problem, I want to change the info value in validationSchema with a button, how can I do that?
also i want info value to be 10 at first
buttons are in a component</p>
```<code>const validationSchema = Yup.object().shape({
  info: Yup.boolean().required(),
  phone: Yup.string().trim().label("Phone").when("info", {
    is: 1,
    then: Yup.string().required(),
  }),
  tax: Yup.string().trim().label("Tax"),
});
</code>```

Body:
I have a problem, I want to change the info value in validationSchema with a button, how can I do that?
also i want info value to be 10 at first
buttons are in a component

const validationSchema = Yup.object().shape({
  info: Yup.boolean().required(),
  phone: Yup.string().trim().label("Phone").when("info", {
    is: 1,
    then: Yup.string().required(),
  }),
  tax: Yup.string().trim().label("Tax"),
});


问:
How to use react-video-recorder with tensorflow plugin?
How to use react-video-recorder with tensorflow plugin? Using react-webcam doesn`t problem but couldn't use together react-video-recorder and tensorflow.

```<code>function VideoRecord() {
  const webcamRef = useRef(null);
  const canvasRef = useRef(null);

  const runCoco = async () => {
    const net = await cocossd.load();
    console.log("Handpose model loaded.");
    setInterval(() => {
      detect(net);
    }, 10);
  };

  const detect = async (net) => {
    if (
      typeof webcamRef?.current !== "undefined" &&
      webcamRef?.current !== null &&
      webcamRef?.current.video.readyState === 4
    ) {

      const video = webcamRef?.current.video;
      const videoWidth = webcamRef?.current.video.videoWidth;
      const videoHeight = webcamRef?.current.video.videoHeight;

      webcamRef.current.video.width = videoWidth;
      webcamRef.current.video.height = videoHeight;

      canvasRef.current.width = videoWidth;
      canvasRef.current.height = videoHeight;

      const obj = await net.detect(video);

      const ctx = canvasRef?.current.getContext("2d");
      drawRect(obj, ctx);
    }
  };

  useEffect(() => { runCoco() }, []);

  return (
    <div className="App">
      <header className="App-header">
        <VideoRecorder
          ref={webcamRef}

          className="videoRecord"
          timeLimit={20000}

          onRecordingComplete={videoBlob => {
            // Do something with the video...
            console.log('videoBlob', videoBlob);

          }}

        // timeLimit="15"
        />

        <canvas
          ref={canvasRef}
          style={{
            position: "absolute",
            marginLeft: "auto",
            marginRight: "auto",
            left: 0,
            right: 0,
            textAlign: "center",
            zindex: 8,
            width: 640,
            height: 480,
          }}
        />
      </header>
    </div>
  );
}
</code>```

How to use react-video-recorder with tensorflow plugin? Using react-webcam doesn`t problem but couldn't use together react-video-recorder and tensorflow.

Body:
How to use react-video-recorder with tensorflow plugin? Using react-webcam doesn`t problem but couldn't use together react-video-recorder and tensorflow.

function VideoRecord() {
  const webcamRef = useRef(null);
  const canvasRef = useRef(null);

  const runCoco = async () => {
    const net = await cocossd.load();
    console.log("Handpose model loaded.");
    setInterval(() => {
      detect(net);
    }, 10);
  };

  const detect = async (net) => {
    if (
      typeof webcamRef?.current !== "undefined" &&
      webcamRef?.current !== null &&
      webcamRef?.current.video.readyState === 4
    ) {

      const video = webcamRef?.current.video;
      const videoWidth = webcamRef?.current.video.videoWidth;
      const videoHeight = webcamRef?.current.video.videoHeight;

      webcamRef.current.video.width = videoWidth;
      webcamRef.current.video.height = videoHeight;

      canvasRef.current.width = videoWidth;
      canvasRef.current.height = videoHeight;

      const obj = await net.detect(video);

      const ctx = canvasRef?.current.getContext("2d");
      drawRect(obj, ctx);
    }
  };

  useEffect(() => { runCoco() }, []);

  return (

        <VideoRecorder
          ref={webcamRef}

          className="videoRecord"
          timeLimit={20000}

          onRecordingComplete={videoBlob => {
            // Do something with the video...
            console.log('videoBlob', videoBlob);

          }}

        // timeLimit="15"
        />

        <canvas
          ref={canvasRef}
          style={{
            position: "absolute",
            marginLeft: "auto",
            marginRight: "auto",
            left: 0,
            right: 0,
            textAlign: "center",
            zindex: 8,
            width: 640,
            height: 480,
          }}
        />

  );
}

How to use react-video-recorder with tensorflow plugin? Using react-webcam doesn`t problem but couldn't use together react-video-recorder and tensorflow.


问:
What are all the benefits of switching from Routify to SvelteKit 1.0
We are using Svelte and Routify for our SPA project. There's no need for SSR since our entire app requires authentication.

Now that SvelteKit is officially stable (see 1.0 announcement), we are considering migrating to it.

If we do that, we're surely going to be using the SPA mode with the static adapter for the reasons mentioned above, so we're not going to take advantage of all of the benefits of the framework. Nevertheless, I can think of at least a few potential benefits of migrating, such as:

Faster builds with Vite (we're currently using webpack)

Tree shaking

Instant reloading with the HMR API

Dynamically preloading components and data (data-sveltekit-preload-data)

What are the other potential benefits of switching from Routify to SvelteKit 1.0 that are not mentioned above and are there any drawbacks besides having to refactor the codebase?


问:
How do i forget the values on all other pages upon clicking the Clear All button in the main page
When user enter the input in the app , data will be use to calculate the selected parameters, however once the function is done, user can reset all values by clicking on the clear all button. However the values on the parameter page will still reflect the old values until new values are input. How do I ensure that the values are clear and not stored upon clicking the clear all button. The above code include the clear part and the bottom code include the displaying part.

As seen in this photo there's only input of 1,2,3,4

1,2,3,4 appear however previous values circled in yellow are still on the page which supposedly should be 0 when user never input any thing

```<code>import 'package:flutter/material.dart';
import 'package:flutter_math_fork/flutter_math.dart';
import 'package:flutter/rendering.dart';
import 'package:extended_math/extended_math.dart';
import 'package:flutter_math_fork/tex.dart';
import 'package:hehe/rcPage.dart';
import 'package:hehe/vZ.dart';
import 'package:hehe/zInPage.dart';

class calculation extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _calculationState();
  }
}

class _calculationState extends State<calculation>
{
  Complex j =  Complex(re:0 , im: 1);                       // j
  double pi = 3.14159265359;
  double realZL = 0;                                                  //input
  double imaginaryZL = 0;                                        //input
  double realZo = 0;                                                  //input
  double imaginaryZo = 0;                                        //input
  var zlvalue = Complex(re:0 , im:0);                        // to calculate ZL value
  var zlvalue1 = Complex(re:0 , im:0);                      // to display ZL value
  var zovalue = Complex(re:0 , im:0);                       // to calculate ZO value
  var zovalue1 = Complex(re:0 , im:0);                     // to display ZO value
  var rctop = Complex(re:0 , im:0);                           // to calculate rctop value
  var rctop1 = Complex(re:0 , im:0);                         // to display rctop value
  var rcbtm = Complex(re:0 , im:0);                          // to calculate rcbtm value
  var rcbtm1 = Complex(re:0 , im:0);                        // to display rcbtm value
  var rcvalue = Complex(re:0 , im:0);                       // to calculate rcvalue  using ZL and ZO
  var rcvalue1 = Complex(re:0 , im:0);                      // to display rcvalue calculate using ZL and ZO
  var rcvalue11 = Complex(re:0 , im:0);                      // to display rcvalue calculate using ZL and ZO
  double beta = 0;                                                     //input
  double zPosition = 0;                                             //input
  double SWR = 0;                                                   //input
  double thetaRc = 0;                                               //input
  double thetaRo = 0;                                                //input
  double swrValue = 0;                                               // to calculate SWR
  double swrValue1 = 0;                                             // to display SWR
  double thetaRo1 = 0;                                               // to calculate Ro
  double thetaRo2 = 0;                                               // to display Ro
  var rcUsingSwr = Complex(re:0 , im:0);                  // to calculate rcUsingSwr
  var rcUsingSwr1 = Complex(re:0 , im:0);                // to display rcUsingSwr
  var j2betaZpos  = Complex(re:0 , im:0);                 // to calculate j2betaZpos
  var j2betaZpos1 = Complex(re:0 , im:0);                 // to display j2betaZpos
  var rcAtz  = Complex(re:0 , im:0);                            // to calculate rc@z
  var rcAtz1  = Complex(re:0 , im:0);                         // to display rc@z
  double tanbetaz = 0;
  var zIn  = Complex(re:0 , im:0);                             // to calculate zIn
  var zIn1  = Complex(re:0 , im:0);                           // to display zIn
  var zIntop  = Complex(re:0 , im:0);                        // to calculate zIntop
  var zIntop1  = Complex(re:0 , im:0);                       // to display zIntop
  var zInbtm  = Complex(re:0 , im:0);                       // to calculate zInbtm
  var zInbtm1  = Complex(re:0 , im:0);                      // to display zInbtm1
  double phaseVelocity = 0;                                       // input
  double omega = 0;                                                 // input
  double lambda = 0;                                                // input
  double freq =0;                                                       //input
  TextEditingController reZL = TextEditingController(text: '');  // realZL
  TextEditingController imZL = TextEditingController(text: '');  // imaginaryZL
  TextEditingController reZo = TextEditingController(text: '');  // realZo
  TextEditingController imZo = TextEditingController(text: ''); // imaginaryZo
  TextEditingController betaa = TextEditingController(text: ''); // Beta
  TextEditingController zPos = TextEditingController(text: ''); // Z position
  TextEditingController swr = TextEditingController(text: ''); // SWR
  TextEditingController thetaRcc = TextEditingController(text: ''); // thetaRc
  TextEditingController thetaRoo = TextEditingController(text: ''); // thetaRo
  TextEditingController uP = TextEditingController(text: ''); //
  TextEditingController w = TextEditingController(text: ''); //
  TextEditingController lambdaa = TextEditingController(text: ''); //
  TextEditingController Freq = TextEditingController(text: ''); //

  Widget build(BuildContext context) {
    return Scaffold (
      appBar: AppBar(
        title: Text('Calculator'),
        centerTitle: true,
      ),
      body: SingleChildScrollView(
        scrollDirection: Axis.horizontal,
         child: SingleChildScrollView(
          scrollDirection: Axis.vertical,
         child: Padding(
           padding: const EdgeInsets.only(left: 20.0, right: 10.0, top: 10.0),
           child: Container(
             width: MediaQuery.of(context).size.width,
             child: Column(

               children: [
                 Row(
                   children: [
                     Expanded(
                       child: SizedBox(
                         height: 100,
                         child: Padding(
                           padding:  const EdgeInsets.only(right:8.0, top: 30.0),
                           child: TextField(
                             controller: reZL,
                             decoration: InputDecoration(
                                 labelText: "Real ZL (ohms)",
                                 border: OutlineInputBorder(
                                     borderRadius: BorderRadius.circular(10))
                             ),
                             keyboardType: TextInputType.number,
                           ),
                         ),
                       ),
                     ),

                 SizedBox(
                   height: 20,
                 ),
                Row(
                   children: [
                 Padding(padding: EdgeInsets.only(left:20.0,right:10.0), child: ElevatedButton(
                   style:ElevatedButton.styleFrom( padding: EdgeInsets.all(10.0) , minimumSize: Size(80.0,50.0)),
                   onPressed: () {
                     _validateSymbols(Freq.text);

                   },
                   child: Math.tex("${r'\omega'}" , textStyle:  TextStyle(fontSize: 32 , color: Colors.white , fontWeight: FontWeight.bold ) ,),
                 ),),
                     Padding(padding: EdgeInsets.only(), child: ElevatedButton(
                         style:ElevatedButton.styleFrom( padding: EdgeInsets.all(5.0) , minimumSize: Size(80.0,50.0)),
                         onPressed: () {
                           _validateSymbols(lambdaa.text);
                         },
                         child: Math.tex("${r'\beta'}" , textStyle:  TextStyle(fontSize: 32 , color: Colors.white ,fontWeight: FontWeight.bold ) ,),
                       ),),
                     Padding(padding: EdgeInsets.only( left:10.0 ), child:ElevatedButton(
                         style:ElevatedButton.styleFrom( padding: EdgeInsets.all(5.0) , minimumSize: Size(80.0,50.0)),
                         onPressed: () {
                           _validateSymbols(betaa.text);
                         },
                         child: Math.tex("${r'\lambda'}" , textStyle:  TextStyle(fontSize: 32 , color: Colors.white , fontWeight: FontWeight.bold) ,),
                       ),),

                     Padding(padding: EdgeInsets.only(left:10.0 , right:0.0 ), child:ElevatedButton(
                       style:ElevatedButton.styleFrom( padding: EdgeInsets.all(5.0) , minimumSize: Size(80.0,50.0)),
                       onPressed: () {
                         _validateSymbols(Freq.text);
                         _validateSymbols(lambdaa.text);
                       },
                       child: Math.tex("${r'\ u_P'}" , textStyle:  TextStyle(fontSize: 32 , color: Colors.white , fontWeight: FontWeight.bold) ,),
                     ),)
                   ],
                 ),
                 SizedBox(
                   height: 20,
                 ),
                 ElevatedButton(
               style:ElevatedButton.styleFrom( padding: EdgeInsets.all(10.0) , minimumSize: Size(100.0,50.0)),
                       onPressed: () {
                         _validateRcInput1(reZL.text);
                         _validateRcInput1(imZL.text);
                         _validateRcInput1(reZo.text);
                         _validateRcInput1(imZo.text);
                         _validateRcInput1(betaa.text);
                         _validateRcInput1(zPos.text);
                         _validateRcInput1(swr.text);
                         _validateRcInput1(thetaRcc.text);
                         _validateRcInput1(thetaRoo.text);

                         Navigator.of(context).push(
                           MaterialPageRoute(
                             builder: (context)=>rcPage(j:j ,realZL:realZL ,  imaginaryZL:imaginaryZL , realZo:realZo ,
                               imaginaryZo:imaginaryZo  , zlvalue:zlvalue , zovalue: zovalue , zlvalue1:zlvalue1 , zovalue1: zovalue1,
                               rctop:rctop , rcbtm:rcbtm , rctop1:rctop1 ,
                               rcbtm1:rcbtm1, beta:beta , zPosition:zPosition , SWR:SWR , rcUsingSwr1:rcUsingSwr1 ,
                               thetaRc:thetaRc , thetaRo:thetaRo , swrValue:swrValue, thetaRo1:thetaRo1, swrValue1:swrValue1 ,
                               thetaRo2:thetaRo2, j2betaZpos:j2betaZpos , j2betaZpos1:j2betaZpos1
                               , rcAtz:rcAtz, rcAtz1:rcAtz1 , rcvalue1: rcvalue1, rcvalue11: rcvalue11,

                             ),),);
                       },
                       child: Math.tex("{${"Reflection${r'\ \,'}Coefficient"}}${r'\ \,'}${r'\Gamma_L '} " , textStyle:  TextStyle(fontSize: 23 , color: Colors.white , ) ,),
                     ),
                 SizedBox(
                   height: 10,
                 ),
                 ElevatedButton(
             style:ElevatedButton.styleFrom( padding: EdgeInsets.all(10.0) , minimumSize: Size(100.0,50.0)),
                       onPressed: () {
                           _validatezInInput1(reZL.text);
                           _validatezInInput1(imZL.text);
                           _validatezInInput1(reZo.text);
                           _validatezInInput1(imZo.text);
                           _validatezInInput1(betaa.text);
                           _validatezInInput1(zPos.text);
                           _validatezInInput1(swr.text);
                           _validatezInInput1(thetaRcc.text);
                           _validatezInInput1(thetaRoo.text);
                         Navigator.of(context).push(
                           MaterialPageRoute(
                             builder: (context)=>zInPage( j:j ,realZL:realZL ,  imaginaryZL:imaginaryZL , realZo:realZo ,
                                 imaginaryZo:imaginaryZo  , zlvalue:zlvalue , zovalue: zovalue ,zlvalue1:zlvalue1 , zovalue1: zovalue1 ,
                                 rctop:rctop , rcbtm:rcbtm , rctop1:rctop1 , rcbtm1:rcbtm1, beta:beta , zPosition:zPosition, zIn:zIn ,
                                 zIntop:zIntop , zInbtm:zInbtm , zIntop1:zIntop1 , zInbtm1:zInbtm1
                                 ,zIn1:zIn1 , tanbetaz:tanbetaz ),),);
                       },
                       child: Math.tex("{${"Input${r'\ \,'}Impedance"}}${r'\ \,'}${r'\Z_'}{in}(-${r'\ell'}) " , textStyle:  TextStyle(fontSize: 23.3 , color: Colors.white ) ,),
                     ),
                 SizedBox(
                   height: 10,
                 ),
                ** ElevatedButton(
                     style:ElevatedButton.styleFrom( padding: EdgeInsets.all(10.0) , minimumSize: Size(290.0,10.0)),
                       onPressed: () {
                         reZL.clear();
                         imZL.clear();
                         reZo.clear();
                         imZo.clear();
                         betaa.clear();
                         zPos.clear();
                         swr.clear();
                         thetaRcc.clear();
                         thetaRoo.clear();
                         uP.clear();
                         w.clear();
                         lambdaa.clear();
                         Freq.clear();

                       },
                       child: Text('Clear All' , style: TextStyle(fontSize: 25),),
                     ),
               ],
             ),
           )
         ),
         )
      ),
    );
  }**

  _validateRcInput1(String input)
  {
    if (reZL.text != "" && imZL.text!= "" && reZo.text!= ""  &&  imZo.text!= "" && betaa.text!= "" && zPos.text!= ""  &&  swr.text!= "" && thetaRcc.text!= "" && thetaRoo.text!= ""  )
    {
      setState(() {
        realZL = double.parse(reZL.text);
        imaginaryZL = double.parse(imZL.text);
        realZo = double.parse(reZo.text);
        imaginaryZo = double.parse(imZo.text);
        final zlvalue = Complex(re:realZL , im:imaginaryZL) ;
        final zovalue = Complex(re:realZo , im:imaginaryZo) ;
        final rctop = ((zlvalue)-(zovalue));
        final rcbtm = ((zlvalue)+(zovalue));
        final rcvalue = rctop/rcbtm;
        rcvalue11 = rcvalue;
        rcvalue1 = rcvalue;
        rctop1 = rctop;
        rcbtm1 = rcbtm;
        zlvalue1 = zlvalue;
        zovalue1 = zovalue;
        beta = double.parse(betaa.text);
        zPosition = double.parse(zPos.text);
        SWR = double.parse(swr.text);
        thetaRc = double.parse(thetaRcc.text);
        thetaRo = double.parse(thetaRoo.text);
        final swrValue = ((1-SWR) / (1+ SWR));
        final thetaRo1 = thetaRc - 2*beta*zPosition;
        final rcUsingSwr = Complex(re: swrValue*cos(thetaRo1) , im: swrValue*sin(thetaRo1));
        rcUsingSwr1 = rcUsingSwr;
        swrValue1 = swrValue;
        thetaRo2 = thetaRo1;

      });
    }
    else if (reZL.text!= "" && imZL.text!= "" && reZo.text!= ""  &&  imZo.text!= "")
    {
      setState(() {
        realZL = double.parse(reZL.text);
        imaginaryZL = double.parse(imZL.text);
        realZo = double.parse(reZo.text);
        imaginaryZo = double.parse(imZo.text);
        final zlvalue = Complex(re:realZL , im:imaginaryZL) ;
        final zovalue = Complex(re:realZo , im:imaginaryZo) ;
        final rctop = ((zlvalue)-(zovalue));
        final rcbtm = ((zlvalue)+(zovalue));
        final rcvalue = rctop/rcbtm;
        rcvalue1 = rcvalue;
        rcvalue11 = rcvalue;
        rctop1 = rctop;
        rcbtm1 = rcbtm;
        zlvalue1 = zlvalue;
        zovalue1 = zovalue;
      });
    }
  else if (betaa.text!= "" && zPos.text!= ""  &&  swr.text!= "" && thetaRcc.text!= "" && thetaRoo.text!= "")
  {
    setState(() {
      beta = double.parse(betaa.text);
      zPosition = double.parse(zPos.text);
      SWR = double.parse(swr.text);
      thetaRc = double.parse(thetaRcc.text);
      thetaRo = double.parse(thetaRoo.text);
      final swrValue = ((1-SWR) / (1+ SWR));
      final thetaRo1 = thetaRc - 2*beta*zPosition;
      final rcUsingSwr = Complex(re: swrValue*cos(thetaRo1) , im: swrValue*sin(thetaRo1));
      rcUsingSwr1 = rcUsingSwr;
      rcvalue1 = rcUsingSwr1;
      swrValue1 = swrValue;
      thetaRo2 = thetaRo1;
    });
  }
  else
    {}
    }

    _validatezInInput1(String input)
  {
    bool useForumla1 = reZL.text!= "" && imZL.text!= "" && reZo.text!= "" &&  imZo.text!= "" && betaa.text!= "" && zPos.text!= "";
    if (useForumla1)
    {
      setState(() {
        realZL = double.parse(reZL.text);
        imaginaryZL = double.parse(imZL.text);
        realZo = double.parse(reZo.text);
        imaginaryZo = double.parse(imZo.text);
        beta = double.parse(betaa.text);
        zPosition = double.parse(zPos.text);
        final tanbetaz = tan(beta*zPosition);
        final j = Complex(re:0 , im:1);
        final zlvalue = Complex(re:realZL , im:imaginaryZL) ;
        final zovalue = Complex(re:realZo , im:imaginaryZo) ;
        final zIntop =((zlvalue + (zovalue* j * tanbetaz)));
        final zInbtm =  (zovalue + (zlvalue*j* tanbetaz));
        final zIn= (zIntop/ zInbtm)* (zovalue);
        zlvalue1 = zlvalue;
        zovalue1 = zovalue;
        zIntop1= zIntop;
        zInbtm1 = zInbtm;
        zIn1 = zIn;
      });
    }

    else if (reZL.text!= "" && imZL.text!= "" )
    {
      setState(() {
        print(Text("hi"));
      });
    }
  }

  _validateSymbols(String input) {
    if (Freq.text != "" && lambdaa.text != "") {
      setState(() {
        freq = double.parse(Freq.text);
        lambda = double.parse(lambdaa.text);
        phaseVelocity = lambda * freq;
        uP.text = phaseVelocity.toStringAsFixed(3);

      });
    }

    else if (Freq.text != "") {
      setState(() {
        freq = double.parse(Freq.text);
        omega = freq * 2 * pi;
        w.text = omega.toStringAsFixed(3);
      });
    }
    else if (lambdaa.text != "") {
      setState(() {
        lambda = double.parse(lambdaa.text);
        beta = (2 * pi) / lambda;
        betaa.text = beta.toStringAsFixed(3);
      });
    }
    else if (betaa.text != "") {
      setState(() {
        beta = double.parse(betaa.text);
        lambda = (2 * pi) / beta;
        lambdaa.text = lambda.toStringAsFixed(3);
      });
    }
  }
  }

</code>```
```<code>import 'package:flutter/material.dart';
import 'package:extended_math/extended_math.dart';
import 'package:flutter_math_fork/flutter_math.dart';
import 'package:hehe/rczPage.dart';

  class rcPage extends StatelessWidget {
    Complex j =  Complex(re:0 , im: 1);                       // j
    double realZL = 0;                                                  //input
    double imaginaryZL = 0;                                        //input
    double realZo = 0;                                                  //input
    double imaginaryZo = 0;                                        //input
    var zlvalue = Complex(re:0 , im:0);                        // to calculate ZL value
    var zlvalue1 = Complex(re:0 , im:0);                      // to display ZL value
    var zovalue = Complex(re:0 , im:0);                       // to calculate ZO value
    var zovalue1 = Complex(re:0 , im:0);                     // to display ZO value
    var rctop = Complex(re:0 , im:0);                           // to calculate rctop value
    var rctop1 = Complex(re:0 , im:0);                         // to display rctop value
    var rcbtm = Complex(re:0 , im:0);                          // to calculate rcbtm value
    var rcbtm1 = Complex(re:0 , im:0);                        // to display rcbtm value
    var rcvalue = Complex(re:0 , im:0);                       // to calculate rcvalue  using ZL and ZO
    var rcvalue1 = Complex(re:0 , im:0);                      // to display rcvalue for both options
    var rcvalue11 = Complex(re:0 , im:0);                      // to display rcvalue calculate using ZL and ZO
    double beta = 0;                                                     //input
    double zPosition = 0;                                             //input
    double SWR = 0;                                                   //input
    double thetaRc = 0;                                               //input
    double thetaRo = 0;                                               //input
    double swrValue = 0;                                             // to calculate SWR
    double swrValue1 = 0;                                           // to display SWR
    double thetaRo1 = 0;                                             // to calculate Ro
    double thetaRo2 = 0;                                             // to display Ro
    var rcUsingSwr = Complex(re:0 , im:0);                // to calculate rcUsingSwr
    var rcUsingSwr1 = Complex(re:0 , im:0);              // to display rcUsingSwr
    var j2betaZpos  = Complex(re:0 , im:0);               // to calculate j2betaZpos
    var j2betaZpos1 = Complex(re:0 , im:0);             // to display j2betaZpos
    var rcAtz  = Complex(re:0 , im:0);                      // to calculate rc@z
    var rcAtz1  = Complex(re:0 , im:0);                    // to display rc@z
    double tanbetaz = 0;
    var zIn  = Complex(re:0 , im:0);
    var zIntop  = Complex(re:0 , im:0);
    var zInbtm  = Complex(re:0 , im:0);
    var zIntop1  = Complex(re:0 , im:0);
    var zInbtm1  = Complex(re:0 , im:0);

    rcPage({required this.j , required this.imaginaryZL , required this.realZL ,
      required this.realZo , required this.imaginaryZo , required this.rcvalue1, required this.rcvalue11,
      required this.zovalue , required this.zlvalue , required this.zovalue1 , required this.zlvalue1 ,required this.rcbtm , required this.rctop ,required this.rcbtm1 , required this.rctop1 ,
      required this.beta , required this.zPosition , required this.SWR , required this.rcUsingSwr1 ,required this.thetaRc,required this.thetaRo,required this.swrValue
      ,required this.thetaRo1, required this.swrValue1 , required this.thetaRo2 , required this.j2betaZpos , required this.j2betaZpos1,
      required this.rcAtz , required this.rcAtz1 ,
    });

    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Math.tex("{${"Reflection${r'\ \,'}Coefficient"}}${r'\ \,'}${r'\Gamma_L '} " , textStyle:  TextStyle(fontSize: 23 , color: Colors.black , fontWeight: FontWeight.bold) ,),
          centerTitle: true,
          backgroundColor: Colors.yellow[800],
        ),
        body: SingleChildScrollView(
          scrollDirection: Axis.horizontal,
          child:SingleChildScrollView(
        scrollDirection: Axis.vertical,
        child: Padding(
        padding:  EdgeInsets.only(left: 10.0, right: 10.0 , top: 30.0),
          child: Container(
            height: 5000,
            width: 500,
            child:  Column(
            children: [
             ** Text("Variables Values \n",style: TextStyle(fontSize: 25 ,  decoration: TextDecoration.underline,) ,  ),
              Math.tex("${r' \,\Z_L '}=${zlvalue1.re.toStringAsFixed(3)} + ${zlvalue1.im.toStringAsFixed(3)}j," , textStyle:  TextStyle(fontSize: 25 , color: Colors.black) ,),
              Text("" ,  style: TextStyle(fontSize: 25) , ),
              Math.tex("${r' \,\Z_o '}=${zovalue1.re.toStringAsFixed(3)} + ${zovalue1.im.toStringAsFixed(3)}j, " , textStyle:  TextStyle(fontSize: 25 , color: Colors.black) ,),
              Text("" ,  style: TextStyle(fontSize: 25) , ),
              Math.tex("${r' \,\beta'}${"= $beta"}${r'\; '},${r'\; '}Z${r'\, '}position = ${zPosition}m " , textStyle:  TextStyle(fontSize: 25 , color: Colors.black) ,),
              Text("" ,  style: TextStyle(fontSize: 25) , ),
              Math.tex("${r' \,\theta_o'}${"= $thetaRo"}${r'\, '}rad${r'\; '},${r'\; '}${r' \theta_ '}${r' \Gamma '}=${thetaRc}${r'\, '}rad " , textStyle:  TextStyle(fontSize: 25 , color: Colors.black) ,),
              Text(" \n Result:  ${rcvalue1.re.toStringAsFixed(3)} + ${rcvalue1.im.toStringAsFixed(3)}j \n  "  , style: TextStyle(color: Colors.black , fontSize: 25, ) ),**

</code>```

i've clear some parts of the  code due to the word limit

Body:
When user enter the input in the app , data will be use to calculate the selected parameters, however once the function is done, user can reset all values by clicking on the clear all button. However the values on the parameter page will still reflect the old values until new values are input. How do I ensure that the values are clear and not stored upon clicking the clear all button. The above code include the clear part and the bottom code include the displaying part.

As seen in this photo there's only input of 1,2,3,4

1,2,3,4 appear however previous values circled in yellow are still on the page which supposedly should be 0 when user never input any thing

import 'package:flutter/material.dart';
import 'package:flutter_math_fork/flutter_math.dart';
import 'package:flutter/rendering.dart';
import 'package:extended_math/extended_math.dart';
import 'package:flutter_math_fork/tex.dart';
import 'package:hehe/rcPage.dart';
import 'package:hehe/vZ.dart';
import 'package:hehe/zInPage.dart';

class calculation extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _calculationState();
  }
}

class _calculationState extends State<calculation>
{
  Complex j =  Complex(re:0 , im: 1);                       // j
  double pi = 3.14159265359;
  double realZL = 0;                                                  //input
  double imaginaryZL = 0;                                        //input
  double realZo = 0;                                                  //input
  double imaginaryZo = 0;                                        //input
  var zlvalue = Complex(re:0 , im:0);                        // to calculate ZL value
  var zlvalue1 = Complex(re:0 , im:0);                      // to display ZL value
  var zovalue = Complex(re:0 , im:0);                       // to calculate ZO value
  var zovalue1 = Complex(re:0 , im:0);                     // to display ZO value
  var rctop = Complex(re:0 , im:0);                           // to calculate rctop value
  var rctop1 = Complex(re:0 , im:0);                         // to display rctop value
  var rcbtm = Complex(re:0 , im:0);                          // to calculate rcbtm value
  var rcbtm1 = Complex(re:0 , im:0);                        // to display rcbtm value
  var rcvalue = Complex(re:0 , im:0);                       // to calculate rcvalue  using ZL and ZO
  var rcvalue1 = Complex(re:0 , im:0);                      // to display rcvalue calculate using ZL and ZO
  var rcvalue11 = Complex(re:0 , im:0);                      // to display rcvalue calculate using ZL and ZO
  double beta = 0;                                                     //input
  double zPosition = 0;                                             //input
  double SWR = 0;                                                   //input
  double thetaRc = 0;                                               //input
  double thetaRo = 0;                                                //input
  double swrValue = 0;                                               // to calculate SWR
  double swrValue1 = 0;                                             // to display SWR
  double thetaRo1 = 0;                                               // to calculate Ro
  double thetaRo2 = 0;                                               // to display Ro
  var rcUsingSwr = Complex(re:0 , im:0);                  // to calculate rcUsingSwr
  var rcUsingSwr1 = Complex(re:0 , im:0);                // to display rcUsingSwr
  var j2betaZpos  = Complex(re:0 , im:0);                 // to calculate j2betaZpos
  var j2betaZpos1 = Complex(re:0 , im:0);                 // to display j2betaZpos
  var rcAtz  = Complex(re:0 , im:0);                            // to calculate rc@z
  var rcAtz1  = Complex(re:0 , im:0);                         // to display rc@z
  double tanbetaz = 0;
  var zIn  = Complex(re:0 , im:0);                             // to calculate zIn
  var zIn1  = Complex(re:0 , im:0);                           // to display zIn
  var zIntop  = Complex(re:0 , im:0);                        // to calculate zIntop
  var zIntop1  = Complex(re:0 , im:0);                       // to display zIntop
  var zInbtm  = Complex(re:0 , im:0);                       // to calculate zInbtm
  var zInbtm1  = Complex(re:0 , im:0);                      // to display zInbtm1
  double phaseVelocity = 0;                                       // input
  double omega = 0;                                                 // input
  double lambda = 0;                                                // input
  double freq =0;                                                       //input
  TextEditingController reZL = TextEditingController(text: '');  // realZL
  TextEditingController imZL = TextEditingController(text: '');  // imaginaryZL
  TextEditingController reZo = TextEditingController(text: '');  // realZo
  TextEditingController imZo = TextEditingController(text: ''); // imaginaryZo
  TextEditingController betaa = TextEditingController(text: ''); // Beta
  TextEditingController zPos = TextEditingController(text: ''); // Z position
  TextEditingController swr = TextEditingController(text: ''); // SWR
  TextEditingController thetaRcc = TextEditingController(text: ''); // thetaRc
  TextEditingController thetaRoo = TextEditingController(text: ''); // thetaRo
  TextEditingController uP = TextEditingController(text: ''); //
  TextEditingController w = TextEditingController(text: ''); //
  TextEditingController lambdaa = TextEditingController(text: ''); //
  TextEditingController Freq = TextEditingController(text: ''); //

  Widget build(BuildContext context) {
    return Scaffold (
      appBar: AppBar(
        title: Text('Calculator'),
        centerTitle: true,
      ),
      body: SingleChildScrollView(
        scrollDirection: Axis.horizontal,
         child: SingleChildScrollView(
          scrollDirection: Axis.vertical,
         child: Padding(
           padding: const EdgeInsets.only(left: 20.0, right: 10.0, top: 10.0),
           child: Container(
             width: MediaQuery.of(context).size.width,
             child: Column(

               children: [
                 Row(
                   children: [
                     Expanded(
                       child: SizedBox(
                         height: 100,
                         child: Padding(
                           padding:  const EdgeInsets.only(right:8.0, top: 30.0),
                           child: TextField(
                             controller: reZL,
                             decoration: InputDecoration(
                                 labelText: "Real ZL (ohms)",
                                 border: OutlineInputBorder(
                                     borderRadius: BorderRadius.circular(10))
                             ),
                             keyboardType: TextInputType.number,
                           ),
                         ),
                       ),
                     ),

                 SizedBox(
                   height: 20,
                 ),
                Row(
                   children: [
                 Padding(padding: EdgeInsets.only(left:20.0,right:10.0), child: ElevatedButton(
                   style:ElevatedButton.styleFrom( padding: EdgeInsets.all(10.0) , minimumSize: Size(80.0,50.0)),
                   onPressed: () {
                     _validateSymbols(Freq.text);

                   },
                   child: Math.tex("${r'\omega'}" , textStyle:  TextStyle(fontSize: 32 , color: Colors.white , fontWeight: FontWeight.bold ) ,),
                 ),),
                     Padding(padding: EdgeInsets.only(), child: ElevatedButton(
                         style:ElevatedButton.styleFrom( padding: EdgeInsets.all(5.0) , minimumSize: Size(80.0,50.0)),
                         onPressed: () {
                           _validateSymbols(lambdaa.text);
                         },
                         child: Math.tex("${r'\beta'}" , textStyle:  TextStyle(fontSize: 32 , color: Colors.white ,fontWeight: FontWeight.bold ) ,),
                       ),),
                     Padding(padding: EdgeInsets.only( left:10.0 ), child:ElevatedButton(
                         style:ElevatedButton.styleFrom( padding: EdgeInsets.all(5.0) , minimumSize: Size(80.0,50.0)),
                         onPressed: () {
                           _validateSymbols(betaa.text);
                         },
                         child: Math.tex("${r'\lambda'}" , textStyle:  TextStyle(fontSize: 32 , color: Colors.white , fontWeight: FontWeight.bold) ,),
                       ),),

                     Padding(padding: EdgeInsets.only(left:10.0 , right:0.0 ), child:ElevatedButton(
                       style:ElevatedButton.styleFrom( padding: EdgeInsets.all(5.0) , minimumSize: Size(80.0,50.0)),
                       onPressed: () {
                         _validateSymbols(Freq.text);
                         _validateSymbols(lambdaa.text);
                       },
                       child: Math.tex("${r'\ u_P'}" , textStyle:  TextStyle(fontSize: 32 , color: Colors.white , fontWeight: FontWeight.bold) ,),
                     ),)
                   ],
                 ),
                 SizedBox(
                   height: 20,
                 ),
                 ElevatedButton(
               style:ElevatedButton.styleFrom( padding: EdgeInsets.all(10.0) , minimumSize: Size(100.0,50.0)),
                       onPressed: () {
                         _validateRcInput1(reZL.text);
                         _validateRcInput1(imZL.text);
                         _validateRcInput1(reZo.text);
                         _validateRcInput1(imZo.text);
                         _validateRcInput1(betaa.text);
                         _validateRcInput1(zPos.text);
                         _validateRcInput1(swr.text);
                         _validateRcInput1(thetaRcc.text);
                         _validateRcInput1(thetaRoo.text);

                         Navigator.of(context).push(
                           MaterialPageRoute(
                             builder: (context)=>rcPage(j:j ,realZL:realZL ,  imaginaryZL:imaginaryZL , realZo:realZo ,
                               imaginaryZo:imaginaryZo  , zlvalue:zlvalue , zovalue: zovalue , zlvalue1:zlvalue1 , zovalue1: zovalue1,
                               rctop:rctop , rcbtm:rcbtm , rctop1:rctop1 ,
                               rcbtm1:rcbtm1, beta:beta , zPosition:zPosition , SWR:SWR , rcUsingSwr1:rcUsingSwr1 ,
                               thetaRc:thetaRc , thetaRo:thetaRo , swrValue:swrValue, thetaRo1:thetaRo1, swrValue1:swrValue1 ,
                               thetaRo2:thetaRo2, j2betaZpos:j2betaZpos , j2betaZpos1:j2betaZpos1
                               , rcAtz:rcAtz, rcAtz1:rcAtz1 , rcvalue1: rcvalue1, rcvalue11: rcvalue11,

                             ),),);
                       },
                       child: Math.tex("{${"Reflection${r'\ \,'}Coefficient"}}${r'\ \,'}${r'\Gamma_L '} " , textStyle:  TextStyle(fontSize: 23 , color: Colors.white , ) ,),
                     ),
                 SizedBox(
                   height: 10,
                 ),
                 ElevatedButton(
             style:ElevatedButton.styleFrom( padding: EdgeInsets.all(10.0) , minimumSize: Size(100.0,50.0)),
                       onPressed: () {
                           _validatezInInput1(reZL.text);
                           _validatezInInput1(imZL.text);
                           _validatezInInput1(reZo.text);
                           _validatezInInput1(imZo.text);
                           _validatezInInput1(betaa.text);
                           _validatezInInput1(zPos.text);
                           _validatezInInput1(swr.text);
                           _validatezInInput1(thetaRcc.text);
                           _validatezInInput1(thetaRoo.text);
                         Navigator.of(context).push(
                           MaterialPageRoute(
                             builder: (context)=>zInPage( j:j ,realZL:realZL ,  imaginaryZL:imaginaryZL , realZo:realZo ,
                                 imaginaryZo:imaginaryZo  , zlvalue:zlvalue , zovalue: zovalue ,zlvalue1:zlvalue1 , zovalue1: zovalue1 ,
                                 rctop:rctop , rcbtm:rcbtm , rctop1:rctop1 , rcbtm1:rcbtm1, beta:beta , zPosition:zPosition, zIn:zIn ,
                                 zIntop:zIntop , zInbtm:zInbtm , zIntop1:zIntop1 , zInbtm1:zInbtm1
                                 ,zIn1:zIn1 , tanbetaz:tanbetaz ),),);
                       },
                       child: Math.tex("{${"Input${r'\ \,'}Impedance"}}${r'\ \,'}${r'\Z_'}{in}(-${r'\ell'}) " , textStyle:  TextStyle(fontSize: 23.3 , color: Colors.white ) ,),
                     ),
                 SizedBox(
                   height: 10,
                 ),
                ** ElevatedButton(
                     style:ElevatedButton.styleFrom( padding: EdgeInsets.all(10.0) , minimumSize: Size(290.0,10.0)),
                       onPressed: () {
                         reZL.clear();
                         imZL.clear();
                         reZo.clear();
                         imZo.clear();
                         betaa.clear();
                         zPos.clear();
                         swr.clear();
                         thetaRcc.clear();
                         thetaRoo.clear();
                         uP.clear();
                         w.clear();
                         lambdaa.clear();
                         Freq.clear();

                       },
                       child: Text('Clear All' , style: TextStyle(fontSize: 25),),
                     ),
               ],
             ),
           )
         ),
         )
      ),
    );
  }**

  _validateRcInput1(String input)
  {
    if (reZL.text != "" && imZL.text!= "" && reZo.text!= ""  &&  imZo.text!= "" && betaa.text!= "" && zPos.text!= ""  &&  swr.text!= "" && thetaRcc.text!= "" && thetaRoo.text!= ""  )
    {
      setState(() {
        realZL = double.parse(reZL.text);
        imaginaryZL = double.parse(imZL.text);
        realZo = double.parse(reZo.text);
        imaginaryZo = double.parse(imZo.text);
        final zlvalue = Complex(re:realZL , im:imaginaryZL) ;
        final zovalue = Complex(re:realZo , im:imaginaryZo) ;
        final rctop = ((zlvalue)-(zovalue));
        final rcbtm = ((zlvalue)+(zovalue));
        final rcvalue = rctop/rcbtm;
        rcvalue11 = rcvalue;
        rcvalue1 = rcvalue;
        rctop1 = rctop;
        rcbtm1 = rcbtm;
        zlvalue1 = zlvalue;
        zovalue1 = zovalue;
        beta = double.parse(betaa.text);
        zPosition = double.parse(zPos.text);
        SWR = double.parse(swr.text);
        thetaRc = double.parse(thetaRcc.text);
        thetaRo = double.parse(thetaRoo.text);
        final swrValue = ((1-SWR) / (1+ SWR));
        final thetaRo1 = thetaRc - 2*beta*zPosition;
        final rcUsingSwr = Complex(re: swrValue*cos(thetaRo1) , im: swrValue*sin(thetaRo1));
        rcUsingSwr1 = rcUsingSwr;
        swrValue1 = swrValue;
        thetaRo2 = thetaRo1;

      });
    }
    else if (reZL.text!= "" && imZL.text!= "" && reZo.text!= ""  &&  imZo.text!= "")
    {
      setState(() {
        realZL = double.parse(reZL.text);
        imaginaryZL = double.parse(imZL.text);
        realZo = double.parse(reZo.text);
        imaginaryZo = double.parse(imZo.text);
        final zlvalue = Complex(re:realZL , im:imaginaryZL) ;
        final zovalue = Complex(re:realZo , im:imaginaryZo) ;
        final rctop = ((zlvalue)-(zovalue));
        final rcbtm = ((zlvalue)+(zovalue));
        final rcvalue = rctop/rcbtm;
        rcvalue1 = rcvalue;
        rcvalue11 = rcvalue;
        rctop1 = rctop;
        rcbtm1 = rcbtm;
        zlvalue1 = zlvalue;
        zovalue1 = zovalue;
      });
    }
  else if (betaa.text!= "" && zPos.text!= ""  &&  swr.text!= "" && thetaRcc.text!= "" && thetaRoo.text!= "")
  {
    setState(() {
      beta = double.parse(betaa.text);
      zPosition = double.parse(zPos.text);
      SWR = double.parse(swr.text);
      thetaRc = double.parse(thetaRcc.text);
      thetaRo = double.parse(thetaRoo.text);
      final swrValue = ((1-SWR) / (1+ SWR));
      final thetaRo1 = thetaRc - 2*beta*zPosition;
      final rcUsingSwr = Complex(re: swrValue*cos(thetaRo1) , im: swrValue*sin(thetaRo1));
      rcUsingSwr1 = rcUsingSwr;
      rcvalue1 = rcUsingSwr1;
      swrValue1 = swrValue;
      thetaRo2 = thetaRo1;
    });
  }
  else
    {}
    }

    _validatezInInput1(String input)
  {
    bool useForumla1 = reZL.text!= "" && imZL.text!= "" && reZo.text!= "" &&  imZo.text!= "" && betaa.text!= "" && zPos.text!= "";
    if (useForumla1)
    {
      setState(() {
        realZL = double.parse(reZL.text);
        imaginaryZL = double.parse(imZL.text);
        realZo = double.parse(reZo.text);
        imaginaryZo = double.parse(imZo.text);
        beta = double.parse(betaa.text);
        zPosition = double.parse(zPos.text);
        final tanbetaz = tan(beta*zPosition);
        final j = Complex(re:0 , im:1);
        final zlvalue = Complex(re:realZL , im:imaginaryZL) ;
        final zovalue = Complex(re:realZo , im:imaginaryZo) ;
        final zIntop =((zlvalue + (zovalue* j * tanbetaz)));
        final zInbtm =  (zovalue + (zlvalue*j* tanbetaz));
        final zIn= (zIntop/ zInbtm)* (zovalue);
        zlvalue1 = zlvalue;
        zovalue1 = zovalue;
        zIntop1= zIntop;
        zInbtm1 = zInbtm;
        zIn1 = zIn;
      });
    }

    else if (reZL.text!= "" && imZL.text!= "" )
    {
      setState(() {
        print(Text("hi"));
      });
    }
  }

  _validateSymbols(String input) {
    if (Freq.text != "" && lambdaa.text != "") {
      setState(() {
        freq = double.parse(Freq.text);
        lambda = double.parse(lambdaa.text);
        phaseVelocity = lambda * freq;
        uP.text = phaseVelocity.toStringAsFixed(3);

      });
    }

    else if (Freq.text != "") {
      setState(() {
        freq = double.parse(Freq.text);
        omega = freq * 2 * pi;
        w.text = omega.toStringAsFixed(3);
      });
    }
    else if (lambdaa.text != "") {
      setState(() {
        lambda = double.parse(lambdaa.text);
        beta = (2 * pi) / lambda;
        betaa.text = beta.toStringAsFixed(3);
      });
    }
    else if (betaa.text != "") {
      setState(() {
        beta = double.parse(betaa.text);
        lambda = (2 * pi) / beta;
        lambdaa.text = lambda.toStringAsFixed(3);
      });
    }
  }
  }

import 'package:flutter/material.dart';
import 'package:extended_math/extended_math.dart';
import 'package:flutter_math_fork/flutter_math.dart';
import 'package:hehe/rczPage.dart';

  class rcPage extends StatelessWidget {
    Complex j =  Complex(re:0 , im: 1);                       // j
    double realZL = 0;                                                  //input
    double imaginaryZL = 0;                                        //input
    double realZo = 0;                                                  //input
    double imaginaryZo = 0;                                        //input
    var zlvalue = Complex(re:0 , im:0);                        // to calculate ZL value
    var zlvalue1 = Complex(re:0 , im:0);                      // to display ZL value
    var zovalue = Complex(re:0 , im:0);                       // to calculate ZO value
    var zovalue1 = Complex(re:0 , im:0);                     // to display ZO value
    var rctop = Complex(re:0 , im:0);                           // to calculate rctop value
    var rctop1 = Complex(re:0 , im:0);                         // to display rctop value
    var rcbtm = Complex(re:0 , im:0);                          // to calculate rcbtm value
    var rcbtm1 = Complex(re:0 , im:0);                        // to display rcbtm value
    var rcvalue = Complex(re:0 , im:0);                       // to calculate rcvalue  using ZL and ZO
    var rcvalue1 = Complex(re:0 , im:0);                      // to display rcvalue for both options
    var rcvalue11 = Complex(re:0 , im:0);                      // to display rcvalue calculate using ZL and ZO
    double beta = 0;                                                     //input
    double zPosition = 0;                                             //input
    double SWR = 0;                                                   //input
    double thetaRc = 0;                                               //input
    double thetaRo = 0;                                               //input
    double swrValue = 0;                                             // to calculate SWR
    double swrValue1 = 0;                                           // to display SWR
    double thetaRo1 = 0;                                             // to calculate Ro
    double thetaRo2 = 0;                                             // to display Ro
    var rcUsingSwr = Complex(re:0 , im:0);                // to calculate rcUsingSwr
    var rcUsingSwr1 = Complex(re:0 , im:0);              // to display rcUsingSwr
    var j2betaZpos  = Complex(re:0 , im:0);               // to calculate j2betaZpos
    var j2betaZpos1 = Complex(re:0 , im:0);             // to display j2betaZpos
    var rcAtz  = Complex(re:0 , im:0);                      // to calculate rc@z
    var rcAtz1  = Complex(re:0 , im:0);                    // to display rc@z
    double tanbetaz = 0;
    var zIn  = Complex(re:0 , im:0);
    var zIntop  = Complex(re:0 , im:0);
    var zInbtm  = Complex(re:0 , im:0);
    var zIntop1  = Complex(re:0 , im:0);
    var zInbtm1  = Complex(re:0 , im:0);

    rcPage({required this.j , required this.imaginaryZL , required this.realZL ,
      required this.realZo , required this.imaginaryZo , required this.rcvalue1, required this.rcvalue11,
      required this.zovalue , required this.zlvalue , required this.zovalue1 , required this.zlvalue1 ,required this.rcbtm , required this.rctop ,required this.rcbtm1 , required this.rctop1 ,
      required this.beta , required this.zPosition , required this.SWR , required this.rcUsingSwr1 ,required this.thetaRc,required this.thetaRo,required this.swrValue
      ,required this.thetaRo1, required this.swrValue1 , required this.thetaRo2 , required this.j2betaZpos , required this.j2betaZpos1,
      required this.rcAtz , required this.rcAtz1 ,
    });

    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Math.tex("{${"Reflection${r'\ \,'}Coefficient"}}${r'\ \,'}${r'\Gamma_L '} " , textStyle:  TextStyle(fontSize: 23 , color: Colors.black , fontWeight: FontWeight.bold) ,),
          centerTitle: true,
          backgroundColor: Colors.yellow[800],
        ),
        body: SingleChildScrollView(
          scrollDirection: Axis.horizontal,
          child:SingleChildScrollView(
        scrollDirection: Axis.vertical,
        child: Padding(
        padding:  EdgeInsets.only(left: 10.0, right: 10.0 , top: 30.0),
          child: Container(
            height: 5000,
            width: 500,
            child:  Column(
            children: [
             ** Text("Variables Values \n",style: TextStyle(fontSize: 25 ,  decoration: TextDecoration.underline,) ,  ),
              Math.tex("${r' \,\Z_L '}=${zlvalue1.re.toStringAsFixed(3)} + ${zlvalue1.im.toStringAsFixed(3)}j," , textStyle:  TextStyle(fontSize: 25 , color: Colors.black) ,),
              Text("" ,  style: TextStyle(fontSize: 25) , ),
              Math.tex("${r' \,\Z_o '}=${zovalue1.re.toStringAsFixed(3)} + ${zovalue1.im.toStringAsFixed(3)}j, " , textStyle:  TextStyle(fontSize: 25 , color: Colors.black) ,),
              Text("" ,  style: TextStyle(fontSize: 25) , ),
              Math.tex("${r' \,\beta'}${"= $beta"}${r'\; '},${r'\; '}Z${r'\, '}position = ${zPosition}m " , textStyle:  TextStyle(fontSize: 25 , color: Colors.black) ,),
              Text("" ,  style: TextStyle(fontSize: 25) , ),
              Math.tex("${r' \,\theta_o'}${"= $thetaRo"}${r'\, '}rad${r'\; '},${r'\; '}${r' \theta_ '}${r' \Gamma '}=${thetaRc}${r'\, '}rad " , textStyle:  TextStyle(fontSize: 25 , color: Colors.black) ,),
              Text(" \n Result:  ${rcvalue1.re.toStringAsFixed(3)} + ${rcvalue1.im.toStringAsFixed(3)}j \n  "  , style: TextStyle(color: Colors.black , fontSize: 25, ) ),**

i've clear some parts of the  code due to the word limit


问:
Apache camel SFTP handle "too many authentication failures"?
How to handle Apache camel SFTP "too many authentication failures"

When I tried with wrong password from Camel context, user is getting blocked from SFTP server. To avoid the issue I just want to poll only one time for connection establishment. if authentication fails, no further poll should happen from the camel.

Below is the SFTP endpoint config.

sftp://host/temp/?noop=true&eagerMaxMessagePerPoll=false
&MaxMessagesPerPoll=1& disconnect=true&delay=120000&streamDownload=true&stepWise=false&maximumReconnectAttemps=1&throwExceptionOnConnectionFailed=true&consumer.bridgeErrorHandler=true


问:
how to use [clrModalCloseButtonAriaLabel]
as shown in the below posted code, I am trying to use [clrModalCloseButtonAriaLabel] as stated in this url https://clarity.design/documentation/modals#examples
the below posted code generates the following error message:

```<code>NG0303: Can't bind to 'clrModalCloseButtonAriaLabel' since it isn't a known property of 'clr-modal'.
</code>```

please let me know how to use '[clrModalCloseButtonAriaLabel]` correctly

code:

```<code><clr-modal [(clrModalOpen)]="opened" [clrModalClosable]=true [clrModalCloseButtonAriaLabel]="Close">
    <div class="modal">
        <div class="modal-dialog fadeDown in" role="dialog" aria-hidden="true">
            <div class="modal-content">

            </div>
        </div>
    </div>
    <div class="modal-backdrop fade in" aria-hidden="true"></div>
</clr-modal>
</code>```

Body:
as shown in the below posted code, I am trying to use [clrModalCloseButtonAriaLabel] as stated in this url https://clarity.design/documentation/modals#examples
the below posted code generates the following error message:

NG0303: Can't bind to 'clrModalCloseButtonAriaLabel' since it isn't a known property of 'clr-modal'.

please let me know how to use '[clrModalCloseButtonAriaLabel]` correctly

code:

<clr-modal [(clrModalOpen)]="opened" [clrModalClosable]=true [clrModalCloseButtonAriaLabel]="Close">

</clr-modal>


问:
I am creating expo project with react-native-webrtc, but I got the build error DSO error and after No static method createEGl14
I have issue in build.gradle first i got DSO error tht i solved by using custom plugin and added into app.json but after that I got another error like No static method createEGl14 so I updated the minSdkVersion = 24 but that lead me to the again DSO problem.

//build.gradle

```<code>buildscript {
    ext {
        buildToolsVersion = findProperty('android.buildToolsVersion') ?: '31.0.0'
        // minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '24')
        minSdkVersion = 24
        compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '31')
        targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '31')
        if (findProperty('android.kotlinVersion')) {
            kotlinVersion = findProperty('android.kotlinVersion')
        }
        frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0'

        if (System.properties['os.arch'] == 'aarch64') {
            // For M1 Users we need to use the NDK 24 which added support for aarch64
            ndkVersion = '24.0.8215888'
        } else {
            // Otherwise we default to the side-by-side NDK version from AGP.
            ndkVersion = '21.4.7075529'
        }
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath('com.android.tools.build:gradle:7.2.1')
        classpath('com.facebook.react:react-native-gradle-plugin')
        classpath('de.undercouch:gradle-download-task:5.0.1')
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

def REACT_NATIVE_VERSION = new File(['node', '--print', "JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())

allprojects {
    configurations.all {
        resolutionStrategy {
            force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
        }
    }

    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
        }
        maven {
            // Android JSC is installed from npm
            url(new File(['node', '--print', "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), '../dist'))
        }

        google()
        mavenCentral {
            // We don't want to fetch react-native from Maven Central as there are
            // older versions over there.
            content {
                excludeGroup 'com.facebook.react'
            }
        }
        maven { url 'https://www.jitpack.io' }
    }
}
</code>```

//custome plugin to solve DSO issue.

```<code>const {
  createRunOncePlugin,
  withAppBuildGradle,
} = require("@expo/config-plugins");

const withAppBuildGradleModified = (config) => {
  return withAppBuildGradle(config, async (file) => {
    const modResults = file.modResults;
    modResults.contents =
      modResults.contents +
      "\nandroid.packagingOptions.jniLibs.useLegacyPackaging = true\n";
    return file;
  });
};

module.exports = createRunOncePlugin(
  withAppBuildGradleModified,
  "withAppBuildGradleModified",
  "1.0.0"
);

</code>```

//app.json

```<code>{
  "expo": {
    "name": "videocall_webrtc",
    "slug": "videocall_webrtc",
    "version": "1.0.0",
    "assetBundlePatterns": ["**/*"],
    "plugins": ["./plugin.js", "@config-plugins/react-native-webrtc"]
  }
}

</code>```

Could you please help me how to resolve this issue. I am using JDK 11 and not using EAS build it is an Bare expo project. Could you please share any example or anything that could help me. Thank you in advance.

Body:
I have issue in build.gradle first i got DSO error tht i solved by using custom plugin and added into app.json but after that I got another error like No static method createEGl14 so I updated the minSdkVersion = 24 but that lead me to the again DSO problem.

//build.gradle

buildscript {
    ext {
        buildToolsVersion = findProperty('android.buildToolsVersion') ?: '31.0.0'
        // minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '24')
        minSdkVersion = 24
        compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '31')
        targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '31')
        if (findProperty('android.kotlinVersion')) {
            kotlinVersion = findProperty('android.kotlinVersion')
        }
        frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0'

        if (System.properties['os.arch'] == 'aarch64') {
            // For M1 Users we need to use the NDK 24 which added support for aarch64
            ndkVersion = '24.0.8215888'
        } else {
            // Otherwise we default to the side-by-side NDK version from AGP.
            ndkVersion = '21.4.7075529'
        }
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath('com.android.tools.build:gradle:7.2.1')
        classpath('com.facebook.react:react-native-gradle-plugin')
        classpath('de.undercouch:gradle-download-task:5.0.1')
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

def REACT_NATIVE_VERSION = new File(['node', '--print', "JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())

allprojects {
    configurations.all {
        resolutionStrategy {
            force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
        }
    }

    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
        }
        maven {
            // Android JSC is installed from npm
            url(new File(['node', '--print', "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), '../dist'))
        }

        google()
        mavenCentral {
            // We don't want to fetch react-native from Maven Central as there are
            // older versions over there.
            content {
                excludeGroup 'com.facebook.react'
            }
        }
        maven { url 'https://www.jitpack.io' }
    }
}

//custome plugin to solve DSO issue.

const {
  createRunOncePlugin,
  withAppBuildGradle,
} = require("@expo/config-plugins");

const withAppBuildGradleModified = (config) => {
  return withAppBuildGradle(config, async (file) => {
    const modResults = file.modResults;
    modResults.contents =
      modResults.contents +
      "\nandroid.packagingOptions.jniLibs.useLegacyPackaging = true\n";
    return file;
  });
};

module.exports = createRunOncePlugin(
  withAppBuildGradleModified,
  "withAppBuildGradleModified",
  "1.0.0"
);

//app.json

{
  "expo": {
    "name": "videocall_webrtc",
    "slug": "videocall_webrtc",
    "version": "1.0.0",
    "assetBundlePatterns": ["**/*"],
    "plugins": ["./plugin.js", "@config-plugins/react-native-webrtc"]
  }
}

Could you please help me how to resolve this issue. I am using JDK 11 and not using EAS build it is an Bare expo project. Could you please share any example or anything that could help me. Thank you in advance.


问:
vcrpy route different responses to different cassettes depending on host
I'm wanting to record various requests on a particular unit test, with the requests for each specific host going to their own specific cassette file. Is there any way to do this in vcrpy?


问:
Issue while getting values from table row in react
I am using the prime react table where that values are getting show in table but then prime react table is not iterating the values from anywhere
But i need to get each id value from the table

Below is my code

```<code><DataTable ref={dt} value={rows} selection={selectedProducts} onSelectionChange={(e) => {setEmployeeId(e.value)}}
dataKey="id" paginator rows={10} currentPageReportTemplate="Showing {first} to {last} of {totalRecords} products"
globalFilter={globalFilter} responsiveLayout="scroll">
<Column selectionMode="multiple" headerStyle={{ width: '2rem' }} exportable={false}></Column>
<Column header="Action" body={actionBodyTemplate} exportable={false} style={{ minWidth: '2rem' }}></Column>
<Column field="name" header='Name' sortable style={{ minWidth: '2rem' }}></Column>
<Column field="workingTime" header='Working Time' sortable style={{ minWidth: '2rem' }}></Column>
</DataTable>
</code>```

Here i want the each rows name after click on the table row

Body:
I am using the prime react table where that values are getting show in table but then prime react table is not iterating the values from anywhere
But i need to get each id value from the table

Below is my code

<DataTable ref={dt} value={rows} selection={selectedProducts} onSelectionChange={(e) => {setEmployeeId(e.value)}}
dataKey="id" paginator rows={10} currentPageReportTemplate="Showing {first} to {last} of {totalRecords} products"
globalFilter={globalFilter} responsiveLayout="scroll">
<Column selectionMode="multiple" headerStyle={{ width: '2rem' }} exportable={false}></Column>
<Column header="Action" body={actionBodyTemplate} exportable={false} style={{ minWidth: '2rem' }}></Column>
<Column field="name" header='Name' sortable style={{ minWidth: '2rem' }}></Column>
<Column field="workingTime" header='Working Time' sortable style={{ minWidth: '2rem' }}></Column>
</DataTable>

Here i want the each rows name after click on the table row


问:
Javascript in form in model-driven app gets overruled
In a model-driven app i am attempting to set a view of a subgrid using Javascript on onload form. When the page load I see the view fllcking back and forth between the default view and the view I am trying to set, sometimes settling on one or the other.

This is my JS file:

```<code>function fnChangeViewOfSubgrid(executionContext) {
    "use strict";
    var oFormContext = executionContext.getFormContext();
    var parameter = oFormContext.data.entity.attributes.get('cr84b_parameter').getValue();
            var viewSelector = oFormContext.getControl("Subgrid_new_3").getViewSelector();
            switch(parameter){

                case 100000000:
                var DynamiskView = {
                    entityType: 1039, // SavedQuery
                    id: "8397137f-a65e-ed11-9561-6045bd90516a",
                    name: "Suspenderede stoffer"
                };
                break;
                case 206200000:
                    var DynamiskView = {
                        entityType: 1039,
                        id: "f44c6642-a65e-ed11-9561-6045bd90516a", //id på view
                        name: "pH"
                    };
                break;
                default:
                    var DynamiskView = {
                        entityType: 1039,
                        id: "07f4d2c7-a65e-ed11-9561-6045bd90516a",
                        name: "Ammonium-N"
                    };
            }
                viewSelector.setCurrentView(DynamiskView);

}
</code>```

Body:
In a model-driven app i am attempting to set a view of a subgrid using Javascript on onload form. When the page load I see the view fllcking back and forth between the default view and the view I am trying to set, sometimes settling on one or the other.

This is my JS file:

function fnChangeViewOfSubgrid(executionContext) {
    "use strict";
    var oFormContext = executionContext.getFormContext();
    var parameter = oFormContext.data.entity.attributes.get('cr84b_parameter').getValue();
            var viewSelector = oFormContext.getControl("Subgrid_new_3").getViewSelector();
            switch(parameter){

                case 100000000:
                var DynamiskView = {
                    entityType: 1039, // SavedQuery
                    id: "8397137f-a65e-ed11-9561-6045bd90516a",
                    name: "Suspenderede stoffer"
                };
                break;
                case 206200000:
                    var DynamiskView = {
                        entityType: 1039,
                        id: "f44c6642-a65e-ed11-9561-6045bd90516a", //id på view
                        name: "pH"
                    };
                break;
                default:
                    var DynamiskView = {
                        entityType: 1039,
                        id: "07f4d2c7-a65e-ed11-9561-6045bd90516a",
                        name: "Ammonium-N"
                    };
            }
                viewSelector.setCurrentView(DynamiskView);

}