How to execute a specific function only in DEBUG and AdHoc modes

Hi,
What i would like to do is a simple button with an action method, This button is initialized, created, assigned to its action method and shown ONLY in Debug and AdHoc modes. So as a developer or tester, i can see the button, but in the release, the client won't be able to see that button.
What i did so far is the following:
-In my project-->Build Settings Tab, i set the Debug values to 1 in both Debug and Adhoc, like this:
-Then i opened up the prefix.pch file, and there, i am blocked and i don't know what to do.
Basically, my action method is something like this:
UIButton btnSwitch=[[UIButton alloc]init];
//Etc...
The above code should be called in a specific file (The UIViewController class which should contain the button).
How can i do that, i mean, how can i tell my application to execute that code in a specifi file only in DEBUG and Adhoc modes.
Thanx in advance.

Hi,
What i would like to do is a simple button with an action method, This button is initialized, created, assigned to its action method and shown ONLY in Debug and AdHoc modes. So as a developer or tester, i can see the button, but in the release, the client won't be able to see that button.
What i did so far is the following:
-In my project-->Build Settings Tab, i set the Debug values to 1 in both Debug and Adhoc, like this:
-Then i opened up the prefix.pch file, and there, i am blocked and i don't know what to do.
Basically, my action method is something like this:
UIButton btnSwitch=[[UIButton alloc]init];
//Etc...
The above code should be called in a specific file (The UIViewController class which should contain the button).
How can i do that, i mean, how can i tell my application to execute that code in a specifi file only in DEBUG and Adhoc modes.
Thanx in advance.

Similar Messages

  • How to execute an sql function containing a SELECT query as paramete

    Hi
    I want to execute this sql query using JDBC methods , but could not be able to find any appropriate method to execute this query.
    select dbms_xmlgen.getxml(select * from departments) from dual
    please some one help with appropriate java code to execute it.
    Thank you

    >
    I want to execute this sql query using JDBC methods , but could not be able to find any appropriate method to execute this query.
    select dbms_xmlgen.getxml(select * from departments) from dual
    please some one help with appropriate java code to execute it.
    >
    Java code? You can't execute that query at all since it is invalid. The parameter needs to be a query string NOT a query.
    select dbms_xmlgen.getxml('select * from departments') from dual See the DBMS_XMLGEN package in the docs
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_xmlgen.htm#i1013206
    >
    Converts the results from the SQL query string to XML format, and returns the XML as a temporary CLOB, which must be subsequently freed using the DBMS_LOB.FREETEMPORARY call:
    DBMS_XMLGEN.GETXML (
    sqlQuery IN VARCHAR2,
    dtdOrSchema IN number := NONE)
    RETURN CLOB;
    >
    Then you execute that query like any other query that returns a result set. The result set will consist of one row and one column of CLOB datatype.
    See the JDBC Developer's Guide - it has examples of how to execute queries that return result sets.
    And this section shows how tow read/write CLOBs
    http://docs.oracle.com/cd/B28359_01/java.111/b31224/oralob.htm#sthref755

  • How to use WMI to query to distinguish legacy and UEFI mode Windows?

    How to use WMI to query to distinguish legacy and UEFI mode Windows?

    This document covers requirements for UEFI support.
    http://msdn.microsoft.com/en-us/windows/hardware/gg463144.aspx
    One of the requirements seems to be ACPI. The Win32_BIOS class of WMI has a BIOSCharacteristics property that indicates if ACPI is supported. See this link for properties exposed by Win32_BIOS:
    http://msdn.microsoft.com/en-us/library/aa394077(v=VS.85).aspx
    There is a PowerShell example showing how to get this information at the bottom. You will need to study the document in the first link to see what else is required.
    Richard Mueller - MVP Directory Services

  • How to Executing a Specific RuleSet within a Dictionary on Oracle Business

    Hi All
    How does one explicitly execute a specific ruleset in a Oracle Business Rules dictionary?
    While using the Business Rules Component inside our composite application(in JDeveloper), the only options available are:
    · Service: Decision Service name
    · Dictionary Name: The name of the dictionary that you want to use.
    · Name: Business rules component name.
    There is no section where we can select to execute only a specific rule set within a dictionary.
    Is this fuctionality not supported or is there a way around this, where we could be able to execute a specific ruleset within a dictionary?
    Regards
    Emmanuel

    You get to choose the option of the Rule Dictionary When dragging in BPEL, if you have already built the bpel process with the rules call, you can do the following
    --> Open the .rules file in the Jdev
    --> Go to the Decision Fucntions Tab
    --> Select the decision function in the list( by default there would be only one)
    --> click on the edit icon
    --> In the bottom you would get to select the Rule Sets you want to be included in this function call(BusinessRulesSets to be included as part of the call)
    --> This would cater your requirement.
    Regards,
    Ajay

  • Hyperlink - How to execute it action function(Java) and then JavaScript

    Hi all, I have a hyperlink in a popup window. When the hyperlink is clicked I want it's action function to be executed. This works fine, the problem is when I put java code in the hyperlink's javascript onClick() function, only the onClick() gets called and not the action function.
    I need the onClick to close the window and submit the main form and I need the action function to set some session variable.
    Thanks in advance for any replies.

    Hi, thanks to anyone that read my post. I found a solution. I removed the code from the hyperlink's javascript onClick and placed it the body onload javascript function. I also set a flag to true when the hyperlink is clicked and only execute the code in the body onLoad() when the flag is true.

  • How to execute a packaged function from within DML

    Hi
    can someone explain in how many ways can we execute a packaged function from within a DML statement.
    examples will help.
    Thanks

    Hi,
    There's no difference between using functions in DML and using functions in any other SQL statement. Almost any place where a literal is allowed, you can have any kind of expression, including a an expression involving one or more functions.
    For example, in
    UPDATE  table_x
    SET     column_a = 0
    WHERE   column_b > SYSDATE;You could use functions instead of 0, column_b, or SYSDATE. (Actually, SYSDATE is a function.) You can not use functions instead of table_x or column_a (since it is to the left of the "=" sign).

  • How to find a specific function's description?

    Hi,
    I'm now looking at xperf stack trace, I would like to know the description of a specific function. For example, I don't know what does RtlUserThreadStart() function do. How to find such information. I tried to search the function name on MSDN, but nothing
    came up.
    thank you!
    Ah_Chao|| MCSE,VCP,EMCSAe

    could anyone show me some lights on this?
    thanks in advanced!
    Ah_Chao|| MCSE,VCP,EMCSAe

  • How to execute/invoke this function

    Hello gurus
    I have this as a part of a business event package. When a person from business side tested this using a java front end, it gave a pl-sql error.
    I have not worked with business events a lot.
    Can someone guide me on how to invoke/test and make sure this works
    function test(v1 In RAW,
    v2 IN OUT NOCOPY WF_EVENT_T) return varchar2
    SHould i write another procedure to invoke the business event so that this function can be tested.
    How to execute these?

    Try using setTimeout() instead.

  • How can I create a function using TestStand variables and call it from a step's Pre-Expression?

    In one sequence I have dozens of Pre-Expressions which are almost the same thing, like this...
    Locals.tagID = (Parameters.singlePhaseEnabled ? "L" : "D") & Str(Locals.phase) & "006"
    ...and the only thing different is that three digit string at the end ("006" will vary). How can I write a function that I can call from a step's Pre-Expression so it would look something like this? ...
    Locals.tagID = MyNewFunction("006")

    You cannot write custom commands for expressions.
    That being said, there are a couple of options:
    Create a subsequence with a single step. Use a parameter of the sequence as "function parameter".
    Create a custom step type including a substep module which implements the function. Add an edit substep to enable the user of the steptype to gracefully change the parameter.
    Store the variable parameter in a local/file global variable and modify the value in each step. This will, at least, keep the "function" the same for every step.
    Norbert

  • How to execute a javascript function in the body onload?

    Hi everyone!
    As you know in the HTML body attribute. You must specify the value of onload
    What is the correct sintaxis for execute a function since in the onload body?
    I only want to do some like this, but only I do it in APEX:
    <body onload ="javascript:namefunction();" >
    I do not know how to use #ONLOAD# when you using want to set some value.
    Could u help me please ?
    Any help would be very appreciated.
    Thank u in advance
    Best Regards

    Hi Chris
    Thank you for your help
    I tried with the next code but it doesn´t work.
    Do you know for what?
    Best Regards
    I paste the next code in the HTML Header :
    <head>
    <script language="JavaScript" type="text/javascript">
    function addLoadEvent(func){
    var oldonload = window.onload;
    if (typeof window.onload != 'function'){
    window.onload = func;
    else {
    window.onload = function() {
    oldonload();
    func();
    function ejecuta()
    doSubmit('ACEPTAR_R')
    addLoadEvent( ejecuta );
    </script>
    </head>

  • How to execute C#-DLL-functions in labview?

    Hello,
    i created a c#-dll that communicates to a LAN-module using modbus. (ReadDI, WriteDO).
    The c#-dll references two external DLLs.
    How can i call my dll in labview and execute the functions?
    Thanks for help

    C# is .NET, so use .NET interface.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to execute a system functions ??

    Hello,
    I would like to know how we can execute system functions from the command line in Java. Is there a menthod to run something like shell or anything like that to execute some command line function???
    Any help would be appreciated !!

    Runtime.exec(), but read the following first: Navigate yourself around pitfalls related to the Runtime.exec() method

  • How to execute an JS function OnRefresh or change in data of Analysis item

    Hi Friends,
    I want one my java script method to be executed when the data displayed in the Analysis Web Item is changed.
    So can any body suggest me how to achieve this.
    Thank You

    Hi.
    What do you mean exactly by "Analysis Web Item is changed" ?
    Regards.

  • How to execute visibroker corba functions?

    Hello
    i have application that the api is exposed throw visibroker coraba
    that mean to execute function throw the web i need to talk cobra
    is there any layer in jsb that provide me to possibility to talk with visibroker ?
    thanks

    Runtime.exec(), but read the following first: Navigate yourself around pitfalls related to the Runtime.exec() method

  • Using OOP across multiple platforms – how to manage platform-specific functions

    I am writing OOP software that acquires data from many cRIO chassis and transmits that information to a remote machine. For testing purposes, we want some of the cRIO chassis to be “Real” and the rest “Simulated”. My project consists of a Parent cRIO chassis class, along with two child classes (Real cRIO and Simulated cRIO). There is also a Parent cRIO method, along with numerous subVI parent and child methods (all with Dynamic object inputs/outputs).  Each instance of a cRIO object is created by taking the Parent cRIO method and wiring into it either a Real or a Simulated class. Real instances use child methods that call RT functions, and Simulated instances use functionally-equivalent child methods that avoid RT function calls.
    The software is fine as long as the real and simulation instances are directed to RT targets. However, I would like to direct the simulation instances to a Windows target; when I do so, I get complaints about RT functions being called on the Windows target. Is there a way to configure my Project so that the compiler will allow my Simulation instances to run on a Windows machine?
    Thank you for any assistance you can offer.

    Just throwing this out there, not sure, but have you tried "disable autodeploy variables" on the crio units within the project?  
     Also, another thing you could try is wrapping your cRIO functions in a conditional structure and check for a targettype== RT.   I'm not sure if this helps but two thoughts i had.
    G/L  

Maybe you are looking for

  • I AM STUCK WITH MOZILLA FIREFOX / NOT SHOWN ON MY LAPTOP SCREEN / USING HUGE AMOUNT OF RAM IN GENERAL - CAN YOU HELP????

    Hi, I have copied these problem on you site, as I could explain better then what they did, wich my problem remain the same as they have. And part me explaining what is really happen to my Laptop. ''Mozilla/Firefox 4 will not SHOW on my computer SCREE

  • Login as DOMAINUsername posible in SPNego?

    Hi, I just implemented SPNego and is working but when a user is not loged into the domain the user has to login typing in the authentication window the username like [email protected] and not like DOMAINUsername, do you know if this is posible? I´ve

  • F.19 Issue

    Dear All, While processing t.code F.19 (Analyze GR/IR Clearing Account) during the month end, there is no list of documents generated. Can anyone help me as why is it so? There is still a balance on GR/IR account though! Will appreciate if anyone can

  • How do I highlight non-contiguous text on pages?

    I've tried on pages using the command key, the alt key, the control key. None of them wil let me highlight texts from different parts of a document at the sametime. Does anyone know how to do this?

  • PS Elements 4.0 Editierbereich kommt nicht

    Photoshop Elements 4.0 mit Windows XP: "Verbindung zur Editier-Anwendung kann nicht geladen werden" erscheint ständig, wenn ich Fotos aus aus dem Browser bearbeiten will. Eine leere Seite ist auch nicht aufzurufen. Kennt jemand das Problem?