7 Replies Latest reply: Apr 4, 2012 10:10 AM by 801120 RSS

    Form WSAuthorizationException and refresh issue?

    Pkum
      HI Jay

      Error
      XPRESS exception:
      Can't call method getObject on class com.waveset.ui.FormUtil ==> com.waveset.util.WSAuthorizationException: View access denied to Subject stst00d on User: stst00d.*


      I am getting this error in idm user console, when i am click on view inbox item.

      and 2. i have checkbox whenever i am click on that form get refreshed and the data which i entered in Text area become refresh, so i want to keep data if i check or uncheck the checkbox??

      ?
      I am using sun idm 7.1

      want help its urgent to remove this error.
        • 1. Re: Form WSAuthorizationException and refresh issue?
          801120
          1) this error indicated that there are some tasks in your queue, on which you don't have acess rights.

          Put some trace in workflow and see, if you are not working in prod env better to delete all tasks in your queue and then check, sometime old bad tasks can lead you this problem.

          2) Reason for form get refreshed is, action attribute for checkbox field is set to 'true'
          like..
          <Display class='Checkbox' action='true'/>

          we do refresh the form like that when we have to calculate some other field values based on value on checkbox value (or other filed)
          if this is not the case for you you may remove the action='true' from checkbox field, after removing this your for will not refresh on check and uncheck.

          If you want to refresh the form based on checkbox selection, then you have to handle your form field values.

          example: to set the filed value to filed itself
          <Field name='txtfield'>

          <Derivation>
          <ref>txtfield</ref>
          </Derivation>
          </Field>

          Read more form handling...........
          • 2. Re: Form WSAuthorizationException and refresh issue?
            Pkum
            <Field name='requestInformation'>
            <Display class='TextArea'>
            <Property name='value' value='Enter the Request Details Here'/>
            <Property name='rows'>
            <Integer>10</Integer>
            </Property>
            <Property name='columns'>
            <Integer>100</Integer>
            </Property>
            <Property name='required'>
            <Boolean>true</Boolean>
            </Property>
            </Display>
            <Derivation>
            <ref>requestInformation</ref>
            </Derivation>
            </Field>

            i am using this code but still page get refreshed, i also want checkbox action='true'.
            • 3. Re: Form WSAuthorizationException and refresh issue?
              Pkum
              i want to keep all data whatever i entered in form on check or uncheck of the checkbox.
              • 4. Re: Form WSAuthorizationException and refresh issue?
                801120
                Below is the sample form, which i created and all values are stick to their place when doing check and uncheck the box.nc

                In your code you have used text area with VALUES and every time form get refreshed and set the values you set.

                use below code for referece. nothing special you have to do...

                <Form name='testFRM'>
                <Display class='EditForm'/>
                <Field name='requestInformation'>
                <Display class='TextArea' action='true'>
                <Property name='rows'>
                <Integer>10</Integer>
                </Property>
                <Property name='columns'>
                <Integer>100</Integer>
                </Property>
                <Property name='required'>
                <Boolean>true</Boolean>
                </Property>
                </Display>
                <Default>
                <s>Please enter comments</s>
                </Default>
                </Field>
                <Field name='txt1'>
                <Display class='Text'/>
                </Field>
                <Field name='txt2'>
                <Display class='Text'/>
                </Field>
                <Field name='chkbox'>
                <Display class='Checkbox' action='true'>
                <Property name='title' value='checkbox check'/>
                </Display>
                </Field>
                </Form>
                • 5. Re: Form WSAuthorizationException and refresh issue?
                  Pkum
                  Jay,
                  Thanks for help,
                  <Property name='value' value='Enter the Request Details Here'/> ---> i removed this and after that its working fine.
                  • 6. Re: Form WSAuthorizationException and refresh issue?
                    Pkum
                    HI Jay

                    Error
                    XPRESS exception:
                    Can't call method getObject on class com.waveset.ui.FormUtil ==> com.waveset.util.WSAuthorizationException: View access denied to Subject stst00d on User: stst00d.*

                    I am getting this error still in idm user console, when i am click on view inbox item.
                    • 7. Re: Form WSAuthorizationException and refresh issue?
                      801120
                      check the workitem scope and user access rights.