How do I enable Data Management if Passing an extra variable to PHP script?

Im trying to use dynamic SQL tables on my PHP server so I need to pass the table name to the PHP script.  I don't understand why the Data Management system that sets up CRUD won't allow this extra parameter.  It says it can only have one input: item. I can get all records, but when I try to create, update, or delete I get an error.
Or is there another way I can pass the tablename variable to the php file before I call any functions?
Thanks!

I use it but does not work for me.
It does not integrates.
You can tag on url value pairs onto your php function call such as:
http://www.yourpath.php?tablename=tablenamesears
You can then extract tablename, by using get in your php script:
$tn = $_GET['tablename'];
This $tn can be used anywhere in your php script as a dynamic value for table targeting.
You can pass as many value pairs as you wish, every preceding pair must be in the form:
http://www.yourpath.php?tablename=tablename&action=update&author=admin
Hope it helps

Similar Messages

  • How I can do data management for classification ?

    Hi
    How I can do data management for classification.
    If I have new class and I want to add this class to a lot of materials, how can I do that? Is there a transaction to add and also to manage the data in the classification by mass?
    Vijay

    CLMM is the transaction for mass maintenance.
    there you click set an change values button
    you enter your class type.
    in assingments tab you enter the new class
    in target objs to enter the material number that need to get this new class assigned. (you can search the materials with the class they have currently and adopt the hits)

  • How to pass a shell variable to rman scripts

    I want to backup datafile to different directory
    depending on the current time,and I can do this to
    pass a shell variable to rman scripts,and this
    variable will used as part of format ,like this:
    backup incremental level=0
    tag rman_inc0_bck
    filesperset 5
    format '$(DIR)/rman_fulldb_%u_%s_%p_%d'
    (database include current controlfile)
    and $(DIR) is shell variable ,but rman will not
    recognize this ,how to achieve this?

    You could send your script to rman thru a pipe | or <<
    echo "backup incremental level=0
    tag rman_inc0_bck
    filesperset 5
    format '$(DIR)/rman_fulldb_%u_%s_%p_%d'
    (database include current controlfile);" | rman target /You could also create a "temp script" and then use it from rman with cmdfile
    sed "s,XXXDIR,$(DIR)," yourtemplate > /tmp/rmanscript.$$
    rman target / cmdfile /tmp/rmanscript.$$
    rm /tmp/rmanscript.$$

  • What data to return when submitting form to a php script?

    Been trying to figure this out for few days now. Been googling it up and found nothing.
    I made a form with livecycle designer, put a http submit button to post data to my php script and when I open it up on acrobat reader and try to submit it, I get an error about content-type not being correct etc.
    What kind of content-type should I be returning then? text/plain, text/html and application/pdf with 0 lenght content doesn't seem to cut it. Can I disable whole return-check as I really dont have anything to return? Or can I somehow send an "success/failure" pop-up or something?

    Thank you George,
    I added the line: header('x', TRUE, 204); to my PHP script per your suggestion and found that I get an error thrown "invalid server response" when using acrobat reader or acrobat pro 9. No new window is loaded and the pdf user's experience is not changed (except for the error message).
    Without the added line, I get the error "no input file page data" thrown.  Since I'm not returning anything to the browser that is expected but not wanted.
    In either case, the data fields are captured and saved by my PHP script. It seems that acrobat requires a response from the server otherwise it is not happy. I can't see a way that I can turn off error messages to avoid this.

  • Enabling data management for  a coldfusion  data service

    Hello,
        i have problem in calling a service withen a data service ,, that if i enable the data management  i cant insert or update records , if i desable the data manabemt i can insert records but dont have result for get all or any get service all .  it was working befor now no i completly remove the data service and created it again but the same problem even i deleted the valueobject and all the actionscript file related to that data service i have the same problem.
    but
    if i call the create record function ,, then i try to get the record i get the resutl from the database ?!!!
    can someone help please

    I saw the tutorial but that doesn't actually show how to configure for POST - it just uses GET and DELETE. When you configure for POST, you get prompted to "Specify an XSD that describes the structure of the request content". That implies that it is going to send the service an XML file as the attachment and wants to know the format of the XML file. The service that I want to use doesn't expect to receive an XML file, it expects form fields, and I think HTML forms send these like this:
    p_zip_code=22209
    p_selection=a
    p_selection=b
    p_selection=cOf course, the correct answer to my question may be "You can't get there from here" at least until 12c.
    Ah ha! I see that some of what Frank mentioned is in the newly released 11.1.2.2, and didn't wait for 12c. I'll give that a try.
    Edited by: jflack on May 11, 2012 2:58 PM

  • How I can transfer data from the database into a variable (or array)?

    I made my application according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed one function to query the database - add the two parameters and get the value of the table in String format. A test operation shows that all is ok. If I want to display this value in the text area, I simply drag and drop service to this element in the design mode
    (<s:TextArea x="153" y="435" id="nameText" text="{getDataMeanResult.lastResult[0].name}"  width="296" height="89"  />).
    It also works fine, just a warning and encouraged to use ArrayCollection.getItemAt().
    Now I want to send the value to a variable or array, but in both cases I get an error: TypeError: Error #1010: A term is undefined and has no properties..
    How can I pass a value from the database into a variable? Thank you.
    public var nameTemp:String;
    getDataMeanResult.token = authors.getDataMean(arrayOfNumber[0], dir_id);
    nameTemp = getDataMeanResult.lastResult[0].name;
    public var nameArray:Array = new Array();
    for (var i:uint=o; i<3; i++){
    getDataMeanResult.token = authors.getDataMean(arrayOfNumber[i], dir_id);
    nameArray[i] = getDataMeanResult.lastResult[0].name;
    And how i can use syntax highlighting in this forum?

    Astraport2012 wrote:
    I have to go back to the discussion. The above example works fine when i want to get a single value of the database. But i need to pass an array and get an array, because i want to get at once all the values for all pictures tooltips. I rewrote the proposed Matt PHP-script and it works. However, i can not display the resulting array.
    yep, it won't work for Arrays, you'll have to do something slightly more intelligent for them.
    easiest way would be to get your PHP to generate XML, then read that into something like an ArrayList on your HTTPService result event (depends what you're doing with it).
    for example, you could have the PHP generate XML such as:
    <pictures>
         <location>test1.png</location>
         <location>test2.png</location>
         <location>test3.png</location>
         <location>test4.png</location>
         <location>test5.png</location>
         <location>test6.png</location>
    </pictures>
    then you'll read that in as the ResultEvent, and perform something like this on it
    private var tempAC:ArrayList = new ArrayList
    protected function getStuff_resultHandler(event:ResultEvent):void
        for each(var item:Object in event.result.pictures)
           var temp:String = (item.@location).toString();
           tempAC.addItem(temp);
    in my example on cookies
    http://www.mattlefevre.com/viewExample.php?tut=flash4PHP&proj=Using%20Cookies
    you'll see an example of how to format an XML structure containing multiple values:
    if($_COOKIE["firstName"])
            print "<stored>true</stored>";
            print "<userInfo>
                    <firstName>".$_COOKIE["firstName"]."</firstName>
                    <lastName>".$_COOKIE["lastName"]."</lastName>
                    <userAge>".$_COOKIE["userAge"]."</userAge>
                    <gender>".$_COOKIE["gender"]."</gender>
                   </userInfo>";
        else
            print "<stored>false</stored>";
    which i handle like so
    if(event.result.stored == true)
                        entryPanel.title = "Welcome back " + event.result.userInfo.firstName + " " + event.result.userInfo.lastName;
                        firstName.text = event.result.userInfo.firstName;
                        lastName.text = event.result.userInfo.lastName;
                        userAge.value = event.result.userInfo.userAge;
                        userGender.selectedIndex = event.result.userInfo.gender;
    depends on what type of Array you're after
    from the sounds of it (with the mention of picture tooltips) you're trying to create a gallery with an image, and a tooltip.
    so i'd probably adopt something like
    <picture>
         <location>example1.png</location>
         <tooltip>tooltip for picture #1</tooltip>
    </picture>
    <picture>
         <location>example2.png</location>
         <tooltip>tooltip for picture #2</tooltip>
    </picture>
    <picture>
         <location>example3.png</location>
         <tooltip>tooltip for picture #3</tooltip>
    </picture>
    etc...
    or
    <picture location="example1.png" tooltip="tooltip for picture #1"/>
    <picture location="example2.png" tooltip="tooltip for picture #2"/>
    <picture location="example3.png" tooltip="tooltip for picture #3"/>
    etc...

  • How to insert the data which is present in the variable into the table

    Hi,
    Let's consider that I have one table and I have stored the table column names in one variable and their values in another variable.
    I want to insert the data that is present in the variables into the table.
    I tried the following way :
    Declare
    V_columns    Varchar2(50) := 'Empno';
    V_values       Number(10) := 101;
    Begin
    Insert Into Emp (V_columns) Values (V_values);
    End;
    The above procedure gives an error : PL?SQL : ORA-00904 : "V_COLUMNS": invalid identifier
    Using the Execute Immediate, we can insert the data which is present in the variables into the table.
    Is there any other way to insert the data which is present in the variable into the table..?
    Can anyone please give me the solution..?
    Thanks..

    plz use this...
    DECLARE
       v_columns   VARCHAR2 (50) := 'Empno';
       v_values    NUMBER (10)   := 101;
    BEGIN
       EXECUTE IMMEDIATE    'Insert Into Emp ('
                         || v_columns
                         || ') Values ('
                         || v_values
                         || ')';
       COMMIT;
    END;

  • Passing variable to PHP script

    Hi,
    I'm new to Oracle&APEX...
    I would like to upload a file to server filesystem, but I could not fid a way this to be done via APEX?
    (I somebody can give me a solution You are welcome)
    I know how this could be done in PHP so I created a script, but I need then to confirm to the database that the file is uploaded. To do this I need to have variable transferred to my PHP script.
    I've tried to build a button to pass the value with ?var=:P5_value, but only "P%_value" is passed as text not the value of this variable.
    How this can be done?
    Any suggestions?

    Hello,
    You should use the webdav functionality in XE.
    http://daust.blogspot.com/2006/03/where-are-images-of-application.html
    then you get the best of both worlds you get files in the database but they can be accessed as if they are in the filesystem.
    Note: APEX need to be replaced with HTMLDB for Oracle XEI have no idea what you are saying here, HTMLDB and APEX are the same thing.
    Carl

  • How do I enable "Data under cursor"?

    Hi all,
    I just started playing around with the new Au CS6, like it a lot so far! I've had good luck getting all the little tweaks I liked from Au 3 working except this one small thing which to many may seem unnecessary, but I have found to be very useful in specific instances.
    Using Au 3, in the status bar at the bottom of the screen there are various data displayed such as 'Sample Format', 'File Size', 'Free Space', and the one I am struggling to find in CS6, 'Data Under Cursor'. With this, anywhere I placed the cursor on a spectrogram I might be looking at in Au it will give me the readout of exact Hz value at that spot in the status bar (for example: -21.6 dB @ 1:22:021, 1362Hz). I cannot find how to turn on or view this datum in CS6. If there's someone out there who knows if I can still do this in the new version, or a workaround I could use to get something similar in Au CS6, I'd love to hear about it.
    Thank you!
    -Melissa

    I got it working since, I had to go into the rte player app and enable cellular streaming there. It wasn't anywhere in general settings where I was initially looking. Thanks anyway.

  • How can I enable Enterprise Manager in Oracle 10g?

    Hi,
    We recently installed Oracle 10g on a MS Window server and after the installation which we created 2 instances each with a default schema from an existing data file (.dmp). After the installation, I realized that somehow, the DBConsole entry is missing in the Windows Services which then prevent me from being able to launch the new browser-based EM.
    We thought we have picked all the components during the installation but for some reasons, it seems like the necessary files or configurations for EM was not there. So I was wondering if anyone know how I can manually install and configure EM?
    Initially I thought if I go thru Oracle Universal installer and re-install everything again, it might help but I am concern that it will then wipe out the 2 instances and schemas that we have already created, especially since I have also applied the 10.2.0.3 patch already. So there was some discussions on calling the emctl program which when I tried, it I got error saying that ORACLE_SID not found. Then there was also some documentation on using the EMCA command to build the dbconsole, is that what I should do?
    Lastly, I was under the impression that one will only setup one EM per server, which means in a perfect world, I will have one instance of the EM which will then allow me to manage the multiple instances (and their schemas) from the same console, is that correct? Or is one EM instance only manages one instance of the database? So if I have TESTDV & TESTUT configured on the same server, I will need to also create two EM consoles?
    I am an amature and am more familiar with Oracle 9i which the EM seemed to be easier to use and setup. So I think I must have skipped or missed some steps during my 10g installation but am concerned that if I reinstall, I will lose everything.
    Thank you very much.

    First of all, thank you as always for taking the time...
    I apologize in advance if I am not using the right terminology. Basically, I have only one Oracle Home directory on that server but I am able to create two different instances and in both cases, I have left the port number to be the same thinking that it's only one physical installation. I thought I would attach my TNSNAME and LISTNER ora files below to give you a better picture of my current setup.
    So for me to connect to the database and the appropriate instance for example, like using SQL Developer, all I have to do is specify the Host Name to DBServer and then the Service Name to either TESTDV or TESTUT. Then I can connect to each of the instance directly.
    But I only have one Oracle_Home directory and use the same port number as the default choice. So to your comment, if I only have one Oracle_HOME and one Port number, should I only install one EM instance?
    Thanks much.
    ******In the TNSNAMES.ORA file:*****
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    TESTDV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DBSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TESTDV)
    TESTUT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DBSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TESTUT)
    *****In the LISTNER.ORA file:*****
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_NAME = TESTDV)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (SID_NAME = TESTDV)
    (SID_DESC =
    (GLOBAL_NAME = TESTUT)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (SID_NAME = TESTUT)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = DBSERVER)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )

  • How to re-enable Manually Manage Music and Videos without erasing all music and videos

    I have an iPhone 4S running iOS 8.1.1 and iTunes 12.0.1.  When I updated iTunes recently to the new version, 12.0.1 it unchecked the Manually Manage Music and Videos option on my iPhone's summary page.  I just want to re-enable this feature without having to spend the time re-installing all my music and playlists.  Is there a way to enable this feature without erasing my music and videos?

    I've gone from auto-sync mode to manual management before, and the music, playlists, and videos which on the device from auto-sync are not removed when changing to manual.

  • How to detect which data type is passed in ?

    Hello!
     I've built a VI function. But I want to make it more secure - that function could detect which data type is wired to the inputs and allow wiring only certain data types. How can I do this?
     Thanks
    Message Edited by ACiDuser on 05-23-2009 08:13 PM
    Solved!
    Go to Solution.

    I'm assuming you're talking about numeric datatypes. In this case that information is not available to you at the subVI level. The LabVIEW compiler will have already changed the datatype to match what your subVI expects if someone wires something of a different type.
    You could use a variant as your input. Then in the subVI you can use the Variant to Flattened Data to get the type. The OpenG LabVIEW Data Tools VIs will be useful if returning an enum specifying the datatype. Specifically, using the "Get TDEnum From Data VI".
    Now that we've gotten that out of the way, let's talk about the why. Why do you need to do this? What are you trying to "secure"?

  • How to import values from txt and pass values to variables

    I need to export some variables from Indesign and import them in Illustrator.  I can export a txt file from InDesign but I don't know how to import and pass the values to variables in Illustrator.
    Can someone help?

    Well from you ID script Im presuming that you are simply writing a few lines of info to a plain text file like so…
    writeFile('SomeData');
    writeFile('AnotherData');
    writeFile('LastData');
    function writeFile(info) {
         try     {
              var log = File('~/Desktop/ID_Data.txt');
              log.open('a');
              log.write(info + '\r');
              log.close()
         catch (e) {
              alert(e);
    So you would just read this back where or when ever you need to use it in your Illustrator script…
    var log = File('~/Desktop/ID_Data.txt');
    log.open('r');
    var a = log.readln();
    var b = log.readln();
    var c = log.readln();
    log.close();
    alert(a);

  • How to Update the Date in PL/SQL using a variable?

    Hi,
    I am setting up a varchar of an update statement and would like to put a date variable for the value. It works when I just put SYSDATE in the statement, yet doesn't when I put the date variable. Gives me an ORA-0904 error. Thanks.
    DECLARE
    v_upd VARCHAR2(32767); -- update statement
    l_date varchar(20);
    BEGIN
    select sysdate into l_date from dual;
    v_upd := 'UPDATE table_name SET LAST_MODIFIED_DATE = ' ||
    l_date ;
    v_upd := v_upd || ' where xyz =''123'' ';
    EXECUTE IMMEDIATE v_upd;
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    RAISE;
    END;

    And you don't need to select sysdate from dual.
    SQL> begin
      2     UPDATE table_name
      3     SET    LAST_MODIFIED_DATE = sysdate
      4     where  xyz = '123';
      5
      6     dbms_output.put_line(sql%rowcount || ' rows updated.');
      7  end;
      8  /
    55103 rows updated.
    PL/SQL procedure successfully completed.

  • Passing SolveRegular Expression Variable from Child Script to Parent Script

    I am having two scripts; Parent and Child, calling the child script user defined method in parent script.
    I need to pass a child script's SolveRegularExpression variable present in the user defined method to the parent script's next StepGroup, just after invoking the Custom method in Child Script.
    Any help is much appreciated.
    Regards

    Got the solution.
    We have to use the eval() function to evaluate the variable with a value from an OpenScript transform variable.
    Thanks

Maybe you are looking for

  • Video issues with USB port replicator with Digital Video

    I have a T400 running Windows XP SP3 32-bit, with the graphics mode set to use the ATI video card. I'm also using the latest approved Lenovo ATI driver for this machine. I have two issues, one of which I consider major: 1) Sometimes when I plug in th

  • HashMap, HashSet and infinite loop

    hi, our code ended up in an infinite loop while parsing the entries of a HashMap with this code:         Iterator it = myHashMap.entrySet().iterator();         while (it.hasNext()) {             field = (Map.Entry) it.next();             // code that

  • Unable to view full page , only in full screen i am able to view it

    unable to view full screen , getting only 1/2 or 1/4 view of the page . but able to see full in full screen

  • PSE9 opens randomly Camera raw 5.6 and 6.4.1

    Hi! My problem is, that PSE9 opens my raw photos seemingly in random wirh either Camera Raw 5.6 or 6.4.1. I don´t know why. I have updated to Camera Raw 6.4.1 for many monts ago, and this old 5.6 version pops up now and then. My Camera is Canon 7D an

  • Trouble binding clients

    Hi There, I've had to erase and install our server and now that everything is set up, I can't get any clients connected – I see: "The version of the server you are trying to connect to is not supported. Please contact your system administrator to res