Get "null" when I call getCurrentRow

Hello

I have a request from 10g to Oracle ADF and I'm having a problem. I'm in a servlet get an Application Module and executing a ViewObject:
    BindingContext context = (BindingContext) session.getAttribute("data");
    DCDataControl dc = context.findDataControl(MvcDefs.DATA_CONTROL_PEOPLE);    
    InfoImpl service = (InfoImpl) dc.getDataProvider();
    ViewObjectImpl dataView = service.getDataView();
    dataView.setNamedWhereClauseParam("documentCode", documentCode);
    dataView.executeQuery();
    Row data= dataView.next();
    String dataColumn= (String) data.getAttribute("dataColumn");
So far, everything works fine. After this code, the servlet insert a record into a table (make a commit with the module of the application) and then try to recall the same front displayed view data:
     ViewObjectImpl dataView = service.getDataView();
     Row data= dataView.getCurrentRow();
     String dataColumn= (String) data.getAttribute("dataColumn");
But I don't know why "dataView.getCurrentRow ()"; return null, if I get a NullPointerException when running "data.getAttribute".

All the code shown in this post is run in the same call to the servlet.

Why I am not getting null in the call "data.getCurrentRow"?

Thank you

The problem is that you make a commit after calling next(). This will reset the iterator and if no row is selected a current line.
You will need to run the query again (not sure if you get the new line otherwise) and do the navigation to get what you want, or go with Suresh advise.

Timo

Tags: Java

Similar Questions

  • Get Null when updating multiple records

    Hi all

    super.processFormRequest (pageContext, webBean);
    Am = (XxSupppacklistAMImpl) pageContext.getApplicationModule (webBean) XxSupppacklistAMImpl;

    String s1 = pageContext.getParameter ("ItemNumber");
    System.out.println ("The Parent point Nukmber is:" + s1);

    If (PageContext.GetParameter ("ParentItem")! = null)
    {
    String s2 = pageContext.getParameter ("ParentItem");
    System.out.println ("the Parent element will be", + s2);
    }
    System.out.println ("Hello I'm in the selectAll method," + s1);

    I was null, when executing the above code.
    could you please, help me on this.


    ThankswithRegards,

    Hello

    B4 value to write more if condition

    If (Row.GetAttribute ("ParentItem")! = null)
    {
    parent = row. GetAttribute("ParentItem").toStrring ();
    }

    Regards
    Meher Irk

  • extract OGG gets NULL when updated

    RDBMS version: 10.2.0.3 (RAC)

    OGG version: 11.2.1.0.1(for 10g)

    I'm confused by something like this for ten days:

    There is a 10.2.0.3 RAC cluster and using ogg 11.2.1.0.1 for record extraction of 10g, files of parameters as follows:

    EXCERPT:

    EXTRACT extte

    SETENV (ORACLE_HOME = / u01/oracle)

    SETENV (NLS_LANG = AMERICAN_AMERICA. ZHS16GBK)

    Username ogg@test,PASSWORD oggpassword

    TRANLOGOPTIONS ASMUSER sys@OGGASM,ASMPASSWORD asmpassword

    KEYNAME AES192 ENCRYPTTRAIL exttekey

    EXTTRAIL/ogg/dirdat/you

    FETCHOPTIONS FETCHPKUPDATECOLS

    TABLE TEST.*;

    I've added some exttrail of following commands:

    dblogin USERID ogg@test,PASSWORD oggpassword

    ADD THE EXTRACT OF EXTTE, TRANLOG, BEGIN NOW, NET 2

    ADD EXTTRAIL/ogg/dirdat/you, EXTRACT of EXTTE

    and began to extract. Then create and insert records in test schema:

    drop table t is serving;

    create table t (key primary number name age number);

    Insert values into t (1100);

    commit;

    update of age set t = 200, where name = 1;

    commit;

    And I see the strangest thing has happened using logdump:

    Open/ogg/dirdat/te000000

    HDR - Ind: E (x 45) Partition:.  (x 04)

    UndoFlag:.  (X 00)     Brutal: A (x 41)

    RecLength: 20 (x 0014) IO time: 16:55:56.000.000 23/12/2013

    IOType: 5 (x 05) OrigNode: 255 (xff)

    TransInd:.  (X 03)     FormatType: R (x 52)

    SyskeyLen: (0x00) incomplete:.  (X 00)

    AuditRBA: 17 AuditPos: 4146564

    Next: N (x 00) RecCount: 1 (x 01)

    23/12/2013 16:55:56.000.000 insert Len 20 RBA 1054

    Name: TEST. T

    After Image: Partition 4 G s

    0000 0005 0000 0001 3100 0100 0700 0000 0331 3030 | ........ 1... 100

    Column 0 (x 0000), Len 5 (x 0005)

    0000 0001 31                                      | .... 1

    Column 1 (x 0001), Len 7 (x 0007)

    0000 0003 3130 30 | .... 100

    Logdump 393 > n

    ___________________________________________________________________

    HDR - Ind: E (x 45) Partition:.  (x 04)

    UndoFlag:.  (X 00)     Brutal: A (x 41)

    RecLength: 19 (x 0013) IO time: 16:55:57.000.000 23/12/2013

    IOType: 15 OrigNode (x0f): 255 (xff)

    TransInd:.  (X 03)     FormatType: R (x 52)

    SyskeyLen: (0x00) incomplete:.  (X 00)

    AuditRBA: 17 AuditPos: 4147728

    Next: N (x 00) RecCount: 1 (x 01)

    23/12/2013 16:55:57.000.000 FieldComp Len 19 RBA 1182

    Name: TEST. T

    After Image: Partition 4 G s

    0000 0004 ffff 0000 0001 0007 0000 0003 3230 30 | ................ 200

    Column 0 (x 0000), Len 4 (x 0004)

    ffff 0000                                         | ....

    Column 1 (x 0001), Len 7 (x 0007)

    0000 0003 3230 30 | .... 200

    the primary key has become ffff 0000 which is NULL in "after the image. So I replicate in the target databases, complained ogg who found no documents that have a NULL value as the primary key.

    And I have it reproduced in the environment of the product, it again in ogg 11.2.1.0.1 for 11g on 10.2.0.3 (RAC) RDBMS.

    Earlier, I installed 10203 database on the single node (no CARS) and make the extraction of ogg even totally:

    HDR - Ind: E (x 45) Partition:.  (x 04)

    UndoFlag:.  (X 00)     Brutal: A (x 41)

    RecLength: 20 (x 0014) IO time: 17:21:02.000.000 23/12/2013

    IOType: 5 (x 05) OrigNode: 255 (xff)

    TransInd:.  (X 03)     FormatType: R (x 52)

    SyskeyLen: (0x00) incomplete:.  (X 00)

    AuditRBA: 40333 AuditPos: 42779524

    Next: N (x 00) RecCount: 1 (x 01)

    23/12/2013 17:21:02.000.000 insert Len 20 RBA 1600

    Name: TEST. T

    After Image: Partition 4 G s

    0000 0005 0000 0001 3100 0100 0700 0000 0331 3030 | ........ 1... 100

    Column 0 (x 0000), Len 5 (x 0005)

    0000 0001 31                                      | .... 1

    Column 1 (x 0001), Len 7 (x 0007)

    0000 0003 3130 30 | .... 100

    ___________________________________________________________________

    HDR - Ind: E (x 45) Partition:.  (x 04)

    UndoFlag:.  (X 00)     Brutal: A (x 41)

    RecLength: 20 (x 0014) IO time: 17:21:02.000.000 23/12/2013

    IOType: 15 OrigNode (x0f): 255 (xff)

    TransInd:.  (X 03)     FormatType: R (x 52)

    SyskeyLen: (0x00) incomplete:.  (X 00)

    AuditRBA: 40333 AuditPos: 42781160

    Next: N (x 00) RecCount: 1 (x 01)

    23/12/2013 17:21:02.000.000 FieldComp Len 20 RBA 1735

    Name: TEST. T

    After Image: Partition 4 G s

    0000 0005 0000 0001 3100 0100 0700 0000 0332 3030 | ........ 1.. 200

    Column 0 (x 0000), Len 5 (x 0005)

    0000 0001 31                                      | .... 1

    Column 1 (x 0001), Len 7 (x 0007)

    0000 0003 3230 30 | .... 200

    everything seems fine.

    Am I wrong in PAP/ASM configuration for extraction?

    I thank you very much for reading and appreciate all of the advice.

    the reference to

    https://community.Oracle.com/thread/2395043

    Read the answer by amardeep.sidhu, and I checked

    SUBSECTIONS SUP SUP SUP SUP

    -------- --- --- --- ---

    NO YES NO NO NO

    only a minimum extra newspaper was saved again log.trandata was not enabled.

    further adjustment of the sessions to:

    change the database adds additional log data (primary key) columns;

    and I get good data.

    Thanks a lot to this thread.

    And now I have the time to find a way for another problem of ASM password which includes '%' while ogg unable connect instance asm :)

  • When I open a new tab by clicking on t he '+' tab, I get a search engine called "-Search. How can I get rid of this? Where is this link?

    When I open a new tab by clicking on t he '+' tab, I get a search engine called "-Search. How can I get rid of this? Where is this link?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • How can I get the TestStand splash screen to not show up when I call the results treatment Utility offline?

    So I call the Offline processing Utility (ORPU) a not executable call results in a plugin to perform a personalised treatment in another configuration.  Everything works fine, including having run reduced (mostly hidden) by using the option/tray.  When he called, the TestStand splash screen appears (certainly is not a show-stopper but it's confusing from the point of view of the user).

    Is it possible that I can get this start screen to not appear when calling the ORPU?  I noticed in the help, mention is made of the use of the callback file, and I wonder if someone has successfully used this to avoid the dialog box or other behaviors.  I would like more info on how it works, but it doesn't seem to be a vast detail on this in the help, and I'm not also find me useful examples.

    The source of the Offline utility treatment results is included with TestStand and can be changed.

    The ORPU source is located under "Components\Models\TestStandModels\Offline utility treatment results"

    From the source, you can see that there is no flag that allows you to hide the splash screen (except for / I leave, but that it will also close the ORPU!); However, you can easily change the ORPU so it does not show the start screen by removing the following lines in \Components\Models\TestStandModels\Offline Results Processing Utility\OfflineResultsProcessingUtility\MainForm.cs

    If (! data.) Quit smoking)
    splashScreenForm = new SplashScreen (mEngine, false);

    Regarding the flags without papers, there are not really many flags undocumented in the ORPU (even once, you can see them in the source), and undocumented flags have very specific use cases (open files from shell and NEITHER internal regression tests).

    A (non-official) complete list of indicators ORPU from 2014 TS:

    /?
    Shows help

    / tray
    Starts the ORPU in the status bar

    / exit-when-done
    Exits when all files are made

    / I'm leaving
    Leave immediately

    /process - files - Missing - Data
    Treats the files even if they lack of data

    / which-process-files-Missing-Data
    Do not process files that are missing data, show only a mistake (it is the default behavior).

    / Process-All-Profiles
    Start all profiles

    / Process-No.-Profiles
    Don't start any profile

    / Process-Profiles
    Treat the profiles specified in the following arguments

    / process-files
    Add the files specified for the specified profile

    / log - level

    Sets the logging level for the newspaper ORPU, all of the messages above, the specified log level is saved.

    /ShellOpen
    It is an internal indicator, it is used to treat applications for the shell (for example, after a double click on a tsr in Windows Explorer). Do not use this indicator.

    / non-interactive
    It is an internal indicator used for the test. Do not use this indicator.

    Please note that NEITHER does not support appellant flags undocumented and that NEITHER is not guaranteeing backward compatibility of these flags undocumented and they could change at any time, without warning.

    For a more detailed explanation of the working of each option, refer to the Arguments of the command line Utility using TestStand treatment results offline.

    Hope this helps,

    Francisco

  • Why do I get an error when I call tool captures with Exec System?

    Hi all, I want to call Snipping Tool of LabVIEW by using System Exec VI, but I always get an error 2. This doesn't happen when I call other executables like calculator or painting; I hope someone can help me or tell me why this error occurs.

    Thank you in advance, I have attached some pictures of the VI I've done so far.

    Hey there;

    I assume you are using the command: SnippingTool or SnippingTool.exe, just like you would use mspaint. but it's giving you 2 error; It's a matter of Windows than a LabVIEW, you can try to use the command:

     

    C:\Windows\Sysnative\snippingtool.exe;

    It worked for me; I found this info in the KB below.

    Command not recognized when using System Exec VI

    Good luck

  • When I start my computer I get a window (black) called cmd.exe.

    I have Windows 8.1.  When I start my computer I get a window (black) called cmd.exe.  It disappears eventually when the computer loads completely.  But, how can I get rid of the window cmd on startup?

    John Alderman

    Press Ctrl-Shift-Escape and go to the Startup tab to view all the things that load at startup. One of those who is going to be the cause of this view occurs. Sometimes it's easy to sort by name, it sometimes takes a few tests to know who is who.

  • In the last week when I call a PDF file and print icon press that I get the button Save?

    With the help of Acrobat DC (last updated) with windows 7. Last week when I call a PDF via Amazon and press print icon, get the print with a button save page?  When I save the doc, I can print through this (different) window.  This happens with other sites that use PDFS.  Someone at - it a fix.  Talk to Adobe to YOU!  But, would appreciate help from anyone who is familiar with the issue.  See you soon!

    When you see the print dialog box, click on 'Change' of Destination and select your physical printer which is in this case HP Laser Jet.

    Here is the screenshot:

    Let us know the results.

    Thank you!

    Shivam

  • ExtendToolscript opens when I call the script from photoshop

    Hey,.

    I asked this question on in general discussions by mistake if I though I would ask new here.

    I have a Javascript that I wrote which generates an interface of buttons in groups organized according to the contents of some folders. Everything works fine, but when you call it from photoshop and extendtoolscript it is not always executed it opens. I wrote many scripts with interfaces and I've never had this problem. This isn't a huge problem for me, as I usually have this program open anyway, but I intend to have a team of people using this script, so if I could stop, somehow, it would be much better.

    If anyone has experienced this before? Or maybe functions extendscript causes to open?

    I don't see anything unusual in the script...

    Any help would be appreciated!

    Thank you

    Mark

    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    
    
    
    
    var templatepath = "~/Desktop/BANNERS/";
    
    
    var bannerfile = ""
    var docRef = app.activeDocument;
    
    
    
    
    var fileArray = new Array();
    
    
                    var sourceFolder = Folder (templatepath + "MAIN/");
    
    
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
    
    
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArray.push(doc);
                                                    }
                                    }
                    }
                
                
                var w = new Window ("dialog", "Choose a Banner");
                w.preferredSize = [400, 100];
                w.orientation = 'row';
                w.alignChildren = "left"
                w.alignChildren = [ "fill", "fill"];
                
                w.btnPnl = w.add('panel', undefined, 'MAIN');
                
                w.btnPnl.btn = w.add ("group");
                w.btnPnl.btn.alignChildren = "left"
                
                var buttonarray = new Array ();
                var key = {};
                
                
                
                for (var i = 0; i < fileArray.length ; i++) {
                    
                    var delimeter = '/';
                    var string = String (fileArray[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    
                    
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    }
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    }
                    var counter = (counter + 1);
                    }
                
                    }
                if (fileArray.length > 6){
                        var divider = 2
                        }
                    else{
                        var divider = 1
                        }
                    
                    var remainder = (i % divider);
                    if (remainder == 0){  
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    }
                    
                    key = (String (fileArray[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername ); 
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    
                    function button_pressed (e)
                    {
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    ////////////////////
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    }
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    }
                    var counter = (counter + 1);
                    }
                }
                
                    ///////////////////////
                    
                    bannerfile = new File (templatepath + "MAIN/" + buttonname + '.png');
                    
                     }
                 }
             
     ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
    
    var fileArrayneon = new Array();
    
    
                    var sourceFolder = Folder (templatepath + "NEON/");
    
    
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
    
    
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArrayneon.push(doc);
                                                    }
                                    }
                    }
                
                
                
                
                w.btnPnl = w.add('panel', undefined, 'NEON');
                
                w.btnPnl.btn = w.add ("group");
                
                var buttonarray = new Array ();
                var key = {};
                
                
                
                for (var i = 0; i < fileArrayneon.length ; i++) {
                    
                    var delimeter = '/';
                    var string = String (fileArrayneon[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    
                    
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    }
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    }
                    var counter = (counter + 1);
                    }
                
                    }
                
                if (fileArrayneon.length > 6){
                        var divider = 2
                        }
                    else{
                        var divider = 1
                        }
                    
                    var remainder = (i % divider);
                    if (remainder == 0){  
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    }
                    
                    key = (String (fileArrayneon[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername ); 
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    
                    function button_pressed (e)
                    {
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    ////////////////////
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    }
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    }
                    var counter = (counter + 1);
                    }
                }
                
                    ///////////////////////
                    
                    bannerfile = new File (templatepath + "NEON/" + buttonname + '.png');
                    
                     }
                 } 
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
    var fileArray180 = new Array();
    
    
                    var sourceFolder = Folder (templatepath + "180/");
    
    
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
    
    
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArray180.push(doc);
                                                    }
                                    }
                    }
                
                
                
                
                w.btnPnl = w.add('panel', undefined, '180');
                
                w.btnPnl.btn = w.add ("group");
                
                var buttonarray = new Array ();
                var key = {};
                
                
                
                for (var i = 0; i < fileArray180.length ; i++) {
                    
                    var delimeter = '/';
                    var string = String (fileArray180[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    
                    
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    }
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    }
                    var counter = (counter + 1);
                    }
                
                    }
                        
                   if (fileArray180.length > 6){
                        var divider = 2
                        }
                    else{
                        var divider = 1
                        }
                    
                    var remainder = (i % divider);
                    
                    
                    if (remainder == 0){  
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    }
                    
                    key = (String (fileArray180[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername ); 
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    
                    function button_pressed (e)
                    {
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    ////////////////////
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    }
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    }
                    var counter = (counter + 1);
                    }
                }
                
                    ///////////////////////
                    
                    bannerfile = new File (templatepath + "180/" + buttonname + '.png');
                    
                     }
                 }   
      
    
    
    
     ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
    
    
    var fileArraymisc = new Array();
    
    
                    var sourceFolder = Folder (templatepath + "MISC/");
    
    
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
    
    
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArraymisc.push(doc);
                                                    }
                                    }
                    }
                
                
                
                
                w.btnPnl = w.add('panel', undefined, 'MISC');
                
                w.btnPnl.btn = w.add ("group");
                
                var buttonarray = new Array ();
                var key = {};
                
                
                
                for (var i = 0; i < fileArraymisc.length ; i++) {
                    
                    var delimeter = '/';
                    var string = String (fileArraymisc[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    
                    
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    }
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    }
                    var counter = (counter + 1);
                    }
                
                    }
                    if (fileArraymisc.length > 6){
                        var divider = 2
                        }
                    else{
                        var divider = 1
                        }
                    
                    var remainder = (i % divider);
                    if (remainder == 0){  
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    }
                    
                    key = (String (fileArraymisc[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername ); 
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    
                    function button_pressed (e)
                    {
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    ////////////////////
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                        
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");    
                    }
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    }
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    }
                    var counter = (counter + 1);
                    }
                }
                
                    ///////////////////////
                    
                    bannerfile = new File (templatepath + "MISC/" + buttonname + '.png');
                    
                     }
                 }  
    
    
    
    
    
       
                     
     w.show();
    
    
    
    
    
    
    
    
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
    
     if (bannerfile == ""){}
     else{
    
    var targetDocumentName =  docRef.name;
    var tempfile = app.open (bannerfile);
    var sourceDocumentName = app.activeDocument.name;
    
    
    
    
    var thewidth = tempfile.width;
    var theheight  = tempfile.height;
    
    
    
    
    app.activeDocument = docRef;
    docRef.resizeImage (null, theheight, null, ResampleMethod.BICUBIC);
    
    
    if ((String(thewidth)) == (String(docRef.width))){
    var thelayer = docRef.activeLayer;
    copyLayers(sourceDocumentName, targetDocumentName );
    docRef.activeLayer = thelayer;
    }
    else {
    alert ("Document width Incorrect")   
    
    
    docRef.activeLayer.name = "main";
    var thelayer = docRef.activeLayer;
    docRef.resizeCanvas (thewidth, null, AnchorPosition.BOTTOMCENTER);
    copyLayers(sourceDocumentName, targetDocumentName );
    docRef.activeLayer = thelayer;
     }
      imageView ("FtOn");
     }
    
    
    
    
    
    
    
    
    
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
      ///////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////
    
    
    
    
     function copyLayers(sourceDocumentName, targetDocumentName) {
      var sourceDoc = app.documents[sourceDocumentName];
      var targetDoc = app.documents[targetDocumentName];
      var sourceLayer, targetLayer, sourceGroup;
    
    
      if (app.activeDocument != sourceDoc) {
        app.activeDocument = sourceDoc;
      }
    
    
    var thelayer = tempfile.layers[0];
    var layersToCopy = thelayer.name;
    
    
      if ( typeof layersToCopy === 'string' ) {
        sourceGroup = tempfile.layers[0];
        targetLayer = sourceGroup.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING )
      }
      else if ( Object.prototype.toString.call( layersToCopy ) === '[object Array]' ) {
        for (var i = 0; i < layersToCopy.length; i++) {
          sourceLayer = sourceDoc.artLayers.getByName( layersToCopy[i] );
          targetLayer = sourceLayer.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING );
        }
      } 
    tempfile.close(SaveOptions.DONOTSAVECHANGES);
    }
    
    
    
    
    
    
    function imageView (view) {
        desc= new ActionDescriptor();
            ref = new ActionReference();
          if (view.length < 5){
             var viewID = charIDToTypeID( view );
          }else{
             var viewID = stringIDToTypeID( view );
          }
          ref.putEnumerated( charIDToTypeID( "Mn  " ), charIDToTypeID( "MnIt" ), viewID );
        desc.putReference( charIDToTypeID( "null" ), ref );
       executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
    };
    
    

    $.writeln (written) the text specified in the JavaScript Console to ExtendScript Toolkit.

    You will probably need to 4 occurrences of the following line, apparently used for purposes of debugging in comment:

    $.writeln (e.target.text + " from panel " + e.target.parent.text);

  • People cannot hear me when I call the iPhone 6

    Hi all

    When I call people from my iPhone 6 they heard me not talk at all.

    If I put the phone on speaker, they can hear me and I can record and playback voice memos with no problems at all.  I tried both a hard and soft reset which none has solved the problem.  I removed the cover and tried to call someone without him, but the problem still happens so this isn't my case interfering with the microphone.

    Anyone have an idea what might happen?  Would it be a problem with iOS 9.3.4 because the problem only happened since I updated to it AFAIK (though this could just be a coincidence)?

    Thank you very much!!

    Get help with microphones on iPhone, iPad and iPod touch - Apple Support -> check this. If the problem still persists let me know

  • When I call you can not hear me IPhone SE

    Hello

    I have a problem, sometimes, when I call with my IPhone to someone, the person does not hear me. I remember several times, but nothing changes. In my view, is not a problem with the protective film. I got this IPhone on April.

    Sorry for my English if you do not understand.

    Thank you for your help.

    Marion of the France

    Hello marionfromnice,

    Thank you for using communities of Apple Support.

    If I understand your message when you call someone your iPhone SE that they cannot hear you. It is very important that you remove all protective film that came with your iPhone SE as it can clog the microphones.

    If the problem persists after removing the protective film, I recommend to use the steps in the following article to help resolve the problem:

    Get help with microphones on your iPhone, iPad and iPod touch

    Best regards

  • Skype is hung up immediately when someone calls

    My Skype running on the desktop Windows 8.1 client done the same thing all the time, except it crashes when I call both when I get calls. I have to leave the program, end it in Task Manager and restart it.

    I tried to uninstall, reinstall. Delete all the files in the registry, etc. Update of drivers. Samet hing continues to be.

    Attached is the DxDiag

    Have you tried to uninstall the version 6.18 and install Skype 6.14.0.104 version?

    The installation for the 6.14.0.104 files version is available here:

    http://community.Skype.com/T5/Windows-desktop-client/ASUS-USB2-0-webcam-not-recognized-by-Skype-6-18...

    Don't forget to turn off the automatic updates.

    Tools-> Options-> Advanced-> automatic updates-> turn off automatic updates

  • Caller ID info displays when I call a Skype mobile, it is not what is in my profile

    When I call a cell phone from my Skype account, it ID me by information and photo that are not in my Skype profile. I quadruple-checked all information in my Skype account and cannot understand why he did this and how to get it to just show my Skype profile picture & name no matter what camera I'm calling you.

    Does anyone else have this weird problem? Solutions? ... or anyone know how to contact technical support to Skype directly more? Thank you!

    I'm on MacBook, OS x 10.6.8

    Okay - this is a problem, and I need to get help.

    Does anyone know how to contact Skype support, if it exist anymore?

    My Skype account shows the icon user & name on my Mac when it identifies my Skype calls on the devices, I give the floor. It makes no sense, and I can't understand why it does not display my Skype avatar / icon and the name I have on the number (for my company).

    It is quite frustrating that I have to subscribe to Skype and pay a little money every month, but can not get a question of technology responded.

  • Watch iPhone off when someone call me

    I bought the iPhone 5 s 20 days since so many people have complained that when they call me my phone shows off. I complained to my network provider, they said network is fine that there can be question of handset.  I changed the phone and using sony and I get calls comfortably. What is the problem with the iPhone?

    If you have not already, try to force reboot the phone by holding down the button sleep and home for 10 seconds, until the Apple logo comes back again. You won't lose any data, but it can cure a few glitches.

    If it does not, and to make sure that this isn't related software, set it back to factory settings, without using any data backup later. Set up the rest of the personal settings manually and test the speaker function.

    If it works, restore the last backup. If the problem returns, the data backup contains damaged data, causing your issues.

    If it still does not respond, it is a hardware problem and the phone must be repaired by Apple or an Apple authorized service provider:

    Use iTunes to restore your device to factory settings - Support Apple iOS

    Find an Apple authorized service provider

    Apple iPhone - contact Support - support

  • I have two iPhones when someone calls me bought his

    I have 2 iPhones an iPhone 5 and my father have an iphone 6.

    When someone call me it sounds at the same time in purchased cell phones.

    This problem started when I bought a 5th generation iPod.

    Hi Teban19,

    I understand that you have a problem with a phone call going to multiple iPhones. Let's take a look at this as possible, it could be.

    The first thing that comes to mind is if you and your dad use the same Apple ID for things like FaceTime and iMessage. If this is the case, there is a continuity of calling features. This feature allows a phone call go to all your devices when you are connected. Take a look at the information below to see if this is the case.

    iPhone cell calls

    With continuity, you can make and receive calls from cellphone to your iPad, iPod touch, or Mac when your iPhone is on the same Wi - Fi network.

    Your carrier can support Wi-Fi calling on other devices. If so, you can configure your Mac and other iOS devices to make and receive calls even if your iPhone is not on or nearby.

    Configure iPhone cellular calls

    • You need to iOS 8 or later version on your device iOS and OS X Yosemite or later version on your Mac.
    • Check that you are connected to iCloud with the same Apple ID on all your devices.
    • Use the same Wi - Fi network on all of your devices.
    • Login to FaceTime with the same Apple ID on all your devices. This means that no matter what device that shares your Apple ID will get your phone calls. If you do not want to receive calls on your other devices, know what to do.

    Make a call or answer a call

    • To make a phone call on your Mac, find a contact phone number in Contacts, calendar, or Safari. Hover over the number, and then click the phone icon that appears to the right of the number.
    • To make a phone call on your iPad or iPod touch, tap or click a phone number, Contacts, calendar, or Safari.
    • On your iPad or iPod touch, you can drag to answer a phone call. On your Mac, a notification is displayed when someone calls your iPhone. Then you can answer the call, send it to your voicemail or transfer the caller a message, directly from your Mac.

    Disable iPhone cellular calls

    To turn off cellular calls on your iPad or iPod touch, iPhone go to settings > FaceTime and turn off the iPhone cellular calls.

    On your Mac, open the FaceTime app and go to FaceTime > Preferences. Click settings, and clear the cellular calls to iPhone.

    Continuity of use to connect your iPhone, iPad, iPod touch and Mac
    https://support.Apple.com/en-us/HT204681

    Let me know if that solves this problem for you.

    Nice day

Maybe you are looking for