Сообщество

DO NOT MOVE TO NEXT PAGE IF FIELD IS BLANK С ответом

Hello,

Can anyone give solution,  i have set a particular field "not to be blank" in FCI 11, still i can goto next page. How to prevent this situation?. I dont want to move down to next document unless all required fields are filled.

Thanks, if any one can answer

Была ли эта статья полезной?

Пользователи, считающие этот материал полезным: 0 из 0

Комментарии

Комментариев: 15

  • Avatar
    Sunil

    Hi Samir,

    To keep the Mandatory fields, you can write the script in  Project Properties>>Stage Tools>>Verificication>>Edit

    Their you select the event "On Closing document".

    I will provide you with a sample code. Try this

    if(DocumentEditor.Document.Field("Invoice Layout\\InvoiceNumber").Text=="")

    {

    FCTools.ShowMessage("InvoiceNumber is Empty, Please Check");

    CanClose.Value=false;

    }

    else

    {

    CanClose.Value=true;

    }

    0
  • Avatar
    Samir

     Hi sunil,

    There is no event such as "On Closing document", so which event handler i have to choose and edit script in it?

    I am using FCI 11, Event handler option is in Project-> Project Properties->Event handlers.

    0
  • Avatar
    Collins Sarmento

    Hi Samir, 

    It is located in the Project Properties Event Handlers. See screenshot attached.

     

     

    0
  • Avatar
    Samir

    Hi, It is not in project properties->Event handlers (ie before batch close) , rather it is in project properties->General->Tools->Edit Tool->Add Event->On closing Document.

    But still the code above mentioned is not working even script is correct syntactically. What is missing in it?

    0
  • Avatar
    Sunil

    Hi Samir,

    Are you checking in Verification Station???

    0
  • Avatar
    Samir

    Hi Sunil, it is a standalone station with all features of proper FCI 11. Code is right but not getting fired. Does that code run in verification station or have any limits? are there any conventions for field name? 

    0
  • Avatar
    Sunil

    You have to write the script in the below location.

    Project Properties>>Stage Tools>>Verificication>>Edit

    It works in verification station.

    Do you want to work this script any other rather than Verification station??

    0
  • Avatar
    Samir

    Hi Sunil, I have code written Project properties->Tools->Edit Tool->Add Event->On closing Document. But still not getting executed. Are there any conventions for 'FIELD NAME'? I have 'Invoice Layout/InvoiceNumber'. Is it ok?.or What could be wrong.

    0
  • Avatar
    Sunil

    Script is correct, but the location you are writing the script is wrong. Write the script in the below location

    Project Properties>>Stage Tools>>Verificication>>Edit

     

    Are you able to see the above location??

    0
  • Avatar
    Samir

    Hi sunil, Project Properties>>Stage Tools was in FC10, Now in FCI 11, ' on closing document' is located in ,Project properties->Tools->Edit Tool->Add Event->On closing Document. We have to write script in that event handler only, isnt it?. So not getting , what things are going wrong

    0
  • Avatar
    Sunil

    Ok, let me check at my side and i will let you know.

    You are using FC11 standalone version right??

    0
  • Avatar
    Samir

    Yes, FCI 11, standalone version. Please check at your side, if you can.

    0
  • Avatar
    Ekaterina

    Hello,

    Please go to the Project Properties > General tab > “Edit Tools” button. Add “On Closing Document” event and place the script there. Note, that customization of this feature should be performed on the Administrator station, but you may see the result only on the Operator station.

    0
  • Avatar
    Samir

    Thanks Ekaterina, But do i need to follow any naming conventions for field name and i have selected Jscript and it says script is correct, but still not getting results. Please guide.

    0
  • Avatar
    Ekaterina

    Hello,

    You may see the result after closing document during the verification task.

    0

Войдите в службу, чтобы оставить комментарий.