How to use script to show how many columns contain no data

I have a requirement. There is a source which is excel file, from this excel file we need to load data in staging table. There are 5 mandatory columns those should not be null. We have used 'No Data Check' for this. The logic is if any of the above mentioned 5 columns  do not contain any record the record will be moved to without data. Up to this it is fine. Now the requirement is to show which column/columns does/do not contain data. We have used a script for this purpose as:
res=' '
res=input1[0]+'  :Failed due to null values in mandatory columns';
input1[1]=res;
output1=res;
But this is showing message as 'Failed due to null values in mandatory columns', which is a generic message. We need to show which column/columns does/do not contain value as 'Failed due to null values in mandatory column columnA, columnB, columnC'. Can anyone help me in this regard. Any kind of help is appreciated.

You could use the variable inputname1, which holds an array of the input attribute names to the script processor. For example:
var result = "";
var first = true;
for (i = 1; i < input1.length; i++) {
  if (input1[i] == null || input1[i] == "") {
    if (first) {
      first = false;
    } else {
      result += ", ";
    result += inputname1[i];
if (result.length > 0) {
  result = "Failed due to null values in the following mandatory columns: " + result;
output1 = result;
Regards,
Nick

Similar Messages

  • How to use Script in ADF model?

    Hi!
    I don't know how to use Script in ADF model. Help me, please!
    Detail: javaScript.
    Thanks so much!

    You can put your Javascript code in the Onmouseover property of the column.
    I don't have the Javascript code for changing the color but for example the following will pop up an alert
    <af:outputText value="#{row.DepartmentId}" onmouseover="alert(\'Unload event fired!\')">

  • How to use time stamps en how to make time stamps in Adobe Reader

    How to use time stamps en how to make time stamps in Adobe Reader

    Did you find a solution? I am having the same problem.
    PDF compatibility level is too high. Supported PDF versions are PDF 1.3 and PDF 1.4 (Acrobat 4, 5 and 6). If you are using Acrobat 7 or higher you will need to save your file at a lower PDF compatibility level.

  • I've just brought myself a new MacBook Pro from a friend I have no idea how to use them I YouTube how to reset a MacBook Pro I done everything all we'll In till you reinstall then it say "this disk is locked"??? Can anyone help me please

    I've just brought myself a new MacBook Pro from a friend I have no idea how to use them I YouTube how to reset a MacBook Pro I done everything all we'll In till you reinstall then it say "this disk is locked"??? Can anyone help me please

    I done everything all we'll In till you reinstall
    Please detail ALL you have done so far in the way of troubleshooting?   Need this info to avoid the been there done that scenarios.
    Care to share which OS you are using?
    Which MBP model do you have? 

  • Beginners question, how to use script?

    Hi there
    Im on OSX, ID4, soon upgrading to ID5.5
    I've been looking for a way to automatically add metadata (author) to a document/exported PDF.
    So i found this http://forums.adobe.com/message/3443064 - looks like the answer I'm seeking, but how do i actually put that into use? Where/how to i add the script?
    Can it be run upon opening/creating a new document, or upon exporting to PDF?
    I'm an experienced indesign user, and I've done some visual basic, php before. But haven't used scripting in InDesign.
    Any pointers in the right direction is greatly appreciated. Thanks.
    - Lasse Fernov

    Hello, ldflkbuc943894353221:
      tomaxxi's script in the thread you cite isn't really a normal script. It is a script that installs an event handler that is automatically triggered every time you create a new document in InDesign, suhc as with File > New.
    You would save that file as, perhaps, tomaxxiAddXMP.jsx, and then you have some choices. You can just drop it in the User Scripts folder, according to http://www.danrodney.com/scripts/directions-installingscripts.html. At which point you would have to run it once per session (from the Scripts panel, after which point all subsequently created documents would have that happen.
    Alternatively, you might want to use it as a startup script. This is an OK idea, except that it might violate your expectations and surprise you sometime if you forget about it. If you follow the above instructions, instead of installing it in the "Scripts Panel" directory, you would go one level up (to "Scripts") and create a directory called "Startup Scripts" and place it there.
    Then restart InDesign. It will then always run whenever InDesign starts.

  • How to use scripts in RMAN for backup

    Hi I would like to create some scripts for recovery backup and then use it in rman,how can it be accomplished?
    For example I would launch an incremental backup the week and a full the sunday.
    I would like to launch this scripts automatically, any ideas on how I can do this?

    hi
    Note the following restrictions:
    Execute CREATE SCRIPT only at the RMAN prompt.
    RMAN must be connected to a target database.
    RMAN must be connected to the recovery catalog either through the CATALOG command-line option or the CONNECT CATALOG command, and the catalog database must be open.
    You cannot run CREATE SCRIPT once and then use this same script on multiple target databases. You must connect to a specific target database and then run CREATE SCRIPT to create a script for this specific target. Each script is associated with one and only one target database.
    You cannot execute a RUN command within a stored script.
    The @ and @@ commands do not work within CREATE SCRIPT.
    Quotes must be used around the script name when the name contains either spaces or reserved words.
    Keywords and Parameters
    For descriptions of the individual commands that you can use in a stored script, refer to the appropriate entry, for example, "BACKUP".
    Syntax Element Description
    'script_name'
    Creates a stored script with the specified name. The statements allowable within the brackets of the CREATE SCRIPT 'script_name' { ... } command are the same allowable within the RUN command. The statements within the braces constitute the job_command_list.
    Note: To run the stored script, specify EXECUTE SCRIPT within the braces of the RUN command.
    Example
    Creating a Script: Example
    The following UNIX shell script creates a recovery catalog script called b_whole_10 that backs up the database and archived redo logs, then executes b_whole_10:
    #!/usr/bin/tcsh
    rman TARGET / CATALOG rman/rman@catdb <<EOF
    # creates recovery catalog script to back up database and archived logs
    CREATE SCRIPT b_whole_l0
    BACKUP INCREMENTAL LEVEL 0 TAG b_whole_l0
    DATABASE PLUS ARCHIVELOG;
    # runs the recovery catalog script b_whole_10
    RUN { EXECUTE SCRIPT b_whole_10; }
    EOF

  • How to use Labview to show video live to another remote laptop

    Hi, I am using labview with a DAQ device with data reading and a web camera. Firstly I would like to show the reading of DAQ device data and live video on the PC with labview. Secondly, I would like to access both device data and video on a remote laptop preferly on a web browser.  
    Could anyone guide me in how to this could be done. Thanks in advance.

    Hi,
    I had the same issue.
    A very easy method of resolution is the DataSocket.
    Communicating Two VIs in Two Computers Using DataSocket:
    https://decibel.ni.com/content/docs/DOC-4905
    Sending an Image over Data Socket:
    http://zone.ni.com/devzone/cda/epd/p/id/2307
    Hope this examples will help you.
    ---Please mark a post as a Solution if it solved your problem ---

  • Where to find the example illustrated how to using script to deploy app

    Hi
    my new job involves configure and deploy app in WL Server. one of tasks is
    to write script and use script file to configure and deploy app.
    This script may need to specify the JDBC for various app (like one app
    communicates with oracle, the other may want DB2, etc).
    anyway, Can any one tell me where to find an example, an URL which shows
    what I want?
    Thanks lots in advance.
    John
    Toronto

    click window and tick actions. that will open the actions
    panel if the flash program. find a frame that contains that button.
    click on an spot off-stage and then click on the button. you may
    see code in the actions panel that control that button's behavior.
    if not, look in the properties panel (window/properties/tick
    properties) for the instance name of that button. now search for
    code attached to a frame/layer that references that instance
    name.

  • How to use script undeploy applications

    Is anyone familiar with OAS script? I want to undeploy some applications using script rather than EM. Any suggestion or help is appreciated.

    In 10.1.2, you can write your own shell script and use dcmctl undeployApplication command:
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13997/cmds.htm#BEIGDEFI
    In 10.1.3, you can use Ant or admin_client.jar to write your own script:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28951/dplyapps.htm#i1038931
    Hope this helps.
    Thanks
    Shail

  • How to use the filter facet on af:column

    I have a column in my VO that is defined as a boolean and that shows as a selectBooleanCheckbox in my table. My table has filters on but above the boolean column it shows a regular input field.
    I checked the filter facet and i also put a selectBooleanCheckbox in it but i don't know how to set the values so the data will be filtered when the value of the checkbox changes.
    <f:facet name="filter">
                        <af:selectBooleanCheckbox id="cbFilt"/>
                      </f:facet>

    For an example that uses a selectOneChoice, easily adaptable to a selectBooleanCheckbox solution, please see:
    Re: how create selectOneChoice in filter facet of af:column _ jdeveloper11g.
    Regards,
    Matthew

  • How to use a USER_DATASTORE to index multiple columns in different tables

    I would appreciate if somebody can give an example or point to links with examples on how to use USER_DATASTORE on multiple columns in different tables. THe Oracle Text documentation only shows multiple columns in the same table.
    Thanks in advance.

    I am not sure why your getting the wrong results but you should seriously reconsider the approach your are taking. Using functions like this is very ineffecient and should be avoided at all cost.

  • How to use different essbase member combinations in columns in obiee

    Hello,
    I am trying to build a report in obiee which has an essbase ASO cube in the background. We have a measure 'A' that exists in BegBalance and a measure 'B' that exists in months Jan through Dec. So in my criteria, i set the dimensions i need along with "Periods - Default" and in the selection pane set the condition to keep only the months and begbalance. I also set the pivot so that the periods and the measures show up in columns.
    When i run the report, in the columns for both measures, i get begbalance and the 12 months.
    However, i only want measure A to show with begbalance and measure B to show with the 12 months. How can i accomplish this?]
    Any help will be much appreciated.
    Thanks.

    Hi,
    Yeah, that is there. I have not copied that code in my post...
    try {
                dataTable1Model.setObject(1,this.getSessionBean1().getTeamName());
                dataTable1Model.setObject(2, this.getSessionBean1().getFis_Year());
                dataTable1Model.execute();
            } catch (Exception x) {
                teamRowSet.close();Thanks

  • How to use Value Variable in Report Painter Column defined as Formula

    Hi Gurus,
    In report painter, how can I add one field (exchange rate) in selection screen, so that user can provide the exchange rate to be used, then execute the report, the exchange rate will used to multiple local currency amount.
    The reason for this is we want use provided exchange rate to convert the amount from once currency to the other currency.
    Alternatively I am studying the functionality of "Value Variable" and found that I can perform the task from this. I have created the value variable but when I am using the variable in Report Painter columns as "&ZVALVAR", system is giving me error. I read the help and it states that use the variable with "&" and do it as it is mentioned.
    Can anybody suggest what I need to do to make it workable.
    Thanks

    I did try using the presentation variable, but that does not work too. I am setting session variable in the dashboard prompt (select 'request variable'). When I use presentation variable, it hard codes the value of the variable name.
    sql is
    select date from work_order where facility = @{p_facility}
    the physical log sql is
    select date from work_order where facility = 'p_facility'

  • How to use url to open report and refresh report's data,but the report's toolbar haven't "refresh data" button

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    HI,
    scenario is
    I hope use url to open the report,and refresh the report data,but I didn't the user use the "refresh data" button to refresh the report's data.How to do that?
    regards

    Post Author: madbird
    CA Forum: WebIntelligence Reporting
    Thank you for your attention, amr_foci .
    I created a Web Intelligence report,there will be more than 30 companies use.The company only allowed to see the Company Data. I want to use the url of the way, from my company in the development of the system to open report, and refresh reported Table data.but do not want users to use the toolbar of "data refresh" button to refresh the data .
    Now the question of identity authentication system, as well as statements by url open the question of Has been resolved, but it can not shield statements through the pages of "data refresh" button.
    In addition, I now used by the business object XI system is posted on the JAVA environment.
    Regards,

  • HT1725 after purchased MOVIE, Down LOAD MAY have problem. PLS ADV HOW TO USE DOWN ROAD and HOW TO OPEN it.

    I have purchased 1 MOVIE first time from ITUNE. but maybe some problem in Downroad.
    It mentione some error and I don't Know How to solve and How to use Purchased Movie when I want watch the Movie.   Thanks.

    I have purchased 1 MOVIE first time from ITUNE. but maybe some problem in Downroad.
    It mentione some error and I don't Know How to solve and How to use Purchased Movie when I want watch the Movie.   Thanks.

Maybe you are looking for

  • Link column and fetch row...

    Hello! I have a report with 5 columns. I am trying to create a link in one of the columns of the report . I want to select the link and redirect to a form which would edit the row of another table based on the link. I managed to create a link to the

  • Checkin Document to Content Server through Content Repository

    Dear All, When I try to check in Document from ECC 5.0 to the content Server through repository(http storage) throwing error can't checkin. when I try to serch SMP notes most of the notes saying thats the progam error and for 6.40 we need to edit fun

  • IO to devices

    Is there a class or classes in java that will allow raw IO from devices such as USB ports, serial ports, etc...especially in java enabled chipsets?

  • Discoverer EUL5 Status Workbooks

    Hi, We have tried to load the EUL5 Status Workbooks in to our EUL. Two of the 5 workbooks have loaded successfully but "Query Statistics", "Data Definition" and "Workbook Management" have not been imported. This appears to be an Access Privs issue, b

  • [OT] Contec =?ISO-8859-1?Q?cay=F3_y_ahora_tikka?=

    Para aquellos que os habeis visto sableados por Contec durante tanto tiempo y que visteis como se separaba en dos nuevas compañias tengo otra noticia. La nueva Tikka, una de las resultantes de la division, ahora tambien se va al garete!!