Apex URL incorrect syntax

Apex 4.2

I'm working on an Apex URL that performs a process and branches to a page. I did search for the URL and am aware of how they work and how to make them and also used in the past. Apparently, I'm not as knowing that I thought that I'm faced with some problems. So there you go.

(1) I have a basic report based on table ASSOCIATIONS

CIT_ASSOC_XREF_ID (PK)

CITATION_ID

CITATION_NAME

ASSOCIATION_ID

Region report, or a query, that displays my report is the following:

SELECT CIT_ASSOC_XREF_ID, CITATION_ID, CITATION_NAME, ASSOCIATION_ID, 'Link'
FROM ASSOCIATIONS
WHERE CITATION_ID = :P11_CITATION_ID

One of the columns (link) I changed to a link column. Than that of the link column, I have the following:

javascript:apex.submit({request:'SAVE',set:{'P11_RUN_REMOVE_CIT_ASSOC_FL':'Y'}});

The URL works fine. I'll put a flag so that I can use in the conditional (point value / Expression 1 column = Expression) 2 of a pl/sql which I want to run and process in a branch. The problem occurs when I try to introduce a new parameter in my URL. The following URL does not work:

javascript:apex.submit({request:'SAVE',set:{'P11_RUN_REMOVE_CIT_ASSOC_FL,P11_CIT_ASSOC_XREF_ID':'Y',#CIT_ASSOC_XREF_ID#}});

It is not yet sail or send the page. It's always a clickable link, but even once, the page does nothing. Am I missing something? I'm out of quotes or something? This is not allowed. Any help on this would be great. Thanks in advance.

NewApexCoder wrote:

Apex 4.2

I'm working on an Apex URL that performs a process and branches to a page. I did search for the URL and am aware of how they work and how to make them and also used in the past. Apparently, I'm not as knowing that I thought that I'm faced with some problems. So there you go.

(1) I have a basic report based on table ASSOCIATIONS

CIT_ASSOC_XREF_ID (PK)

CITATION_ID

CITATION_NAME

ASSOCIATION_ID

Region report, or a query, that displays my report is the following:

  1. SELECT 'Link', CITATION_NAME, CIT_ASSOC_XREF_ID, ASSOCIATION_ID, CITATION_ID
  2. ASSOCIATIONS
  3. WHERE CITATION_ID =: P11_CITATION_ID SELECT CIT_ASSOC_XREF_ID, CITATION_ID, CITATION_NAME, ASSOCIATION_ID, 'Link' OF ASSOCIATIONS WHERE CITATION_ID =: P11_CITATION_ID

One of the columns (link) I changed to a link column. Than that of the link column, I have the following:

  1. JavaScript:apex. Submit({Request:'SAVE',Set:{'P11_RUN_REMOVE_CIT_ASSOC_FL':'Y'}});)

The URL works fine. I'll put a flag so that I can use in the conditional (point value / Expression 1 column = Expression) 2 of a pl/sql which I want to run and process in a branch. The problem occurs when I try to introduce a new parameter in my URL. The following URL does not work:

  1. JavaScript:apex. Submit({Request:'SAVE',Set:{'P11_RUN_REMOVE_CIT_ASSOC_FL,P11_CIT_ASSOC_XREF_ID':'Y',#CIT_ASSOC_XREF_ID#}});)

It is not yet sail or send the page. It's always a clickable link, but even once, the page does nothing. Am I missing something? I'm out of quotes or something? This is not allowed. Any help on this would be great. Thanks in advance.

You're confusing URL and JSON syntax. APEX URLS use lists separated by commas in the positions of itemNames: itemValues of the URL:

f?p=100:11:1234567890::::P11_RUN_REMOVE_CIT_ASSOC_FL,P11_CIT_ASSOC_XREF_ID:Y,#CIT_ASSOC_XREF_ID#

The used JSON in the set option of the apex.submit method uses pairs of name: value:

javascript:apex.submit({request: "SAVE", set:{"P11_RUN_REMOVE_CIT_ASSOC_FL": "Y", "P11_CIT_ASSOC_XREF_ID": #CIT_ASSOC_XREF_ID#}}); // Quote #CIT_ASSOC_XREF_ID# if it's not a number

Tags: Database

Similar Questions

  • ColdFusion 9: [Macromedia] [SQLServer JDBC Driver] [SQL Server] incorrect syntax near ', '.

    HI, I can't understand what is the problem with this query, perhaps someone can help me please

    Run database query error.

    [Macromedia] [SQLServer JDBC Driver] [SQL Server] Incorrect syntax near ', '.

    Run database query error.

    [Macromedia] [SQLServer JDBC Driver] [SQL Server] Incorrect syntax near ', '.

    Rishi

    It turns out that the problem was the 1st file, the name was correctly did not fit so once I have it removed all the others worked without any problem

    Thanks for the reply.

  • Need help with incorrect syntax for an update error

    I get the error message below, but I can't understand what I'm doing wrong.

    Run database query error.

    [Macromedia] [SQLServer JDBC Driver] [SQL Server] Incorrect syntax near the keyword 'WHERE '.

    The error occurred in C:\ColdFusion9\wwwroot\Intranet\DM\Admin\Maintenance-BulbBaseType.cfm: line 23

    21: UPDATE [bulb Type of basic table]

    22: SET [BulbBaseTypeDesc] = "#TxtBulbBaseTypeDesc #",.

    23: WHERE ([BulbBaseTypeID] = #TxtID #)

    24: < / cfquery >

    25: < cfset TxtID = 0 >

    I put my cfparam as:

    < name cfparam = 'Submit' default = "" >

    < cfparam name = "TxtID' default = 0 >

    < name cfparam = default "TxtBulbBaseTypeDesc" = "" >

    Thank you. I'm new to ColdFusion and it's someone other code. I appreciate the help.

  • Incorrect syntax near CF and

    Looks like createodbcdate is upset with me - I have attached the settings and the query in code. If you need more do let me know. Maybe someone can enlighten us. Thanks in advance.

    -Jon

    Run database query error.
    [Macromedia] [SQLServer JDBC Driver] [SQL Server] Incorrect syntax near the keyword 'AND '.

    The error occurred in /var/www/vhosts/company/httpdocs/sales/dsp_homepage.cfm: line 190

    188: OF Payment_BreakDown
    189: WHERE ContractID = #GetOperatorName.ContractID #.
    190: AND DateAdded < = #createodbcdate (attributes.checks_end) #.
    191:
    192: < / cfquery >

    What happens if you change

    AND DateAdded<=>

    for this

    AND DateAdded<=>

    In addition, what is the data type of ContractID? If it's not actually digital, then you need single quotes around ' #GetOperatorName.ContractID # '.

    Phil

  • APEX URL SYNTAX PROBLEM

    APex 4.2

    I think I still have a problem with the syntax of URL Apex. I have a question where I am a link within the query and try to get inside several pairs of element value. I have no problem passing a pair of point value, but when I try to do multiple, I have a problem. My query is below:

    SELECT project_id, content_type,
    '<a href="javascript:apex.submit({request:''SAVE'',set:{''P3_GO_TO_FL'':'''||'Y'||''',''IREQ_PROJECT_ID'':#PROJECT_ID#}});">Project</a>' as "Project Link"
    FROM MY_TABLE
    WHERE THIS_ID = :P3_ID
    
    

    I feel as if there's some place apostraphes. I tried a variation of things, but I just don't get it. I had a similar problem before, but it is within a link of the column. It is within a query which I assume has something to do with why my syntax was interrupted. Any help on this would be greatly appreciated. Thanks in advance

    OK, so I made some progress. Consider the following query:

    SELECT project_id, content_type,
    case
       when content_type is not null then 'Not Null Case'
       else 'Null Case'
    end as "TESTING_QUERY"
    FROM THIS_TABLE
    WHERE THIS_ID = :P3_THAT_ID
    

    So I'm still trying to build a link inside a query (don't see any solution to my problem). I have two branches. One who makes something when the value of the indicator is set on 'Y' and a branch that made another when the value of the indicator is set 'n'. In my case, 'Y', the content_type must be passed in a page element. The syntax is correct. The only problem is that the string substitution #CONTENT_TYPE # gives me problems. I don't know if this should be a substitution string or not, but I know that if I had to replace this with a random value, that random value substitution string passed to the order of the day of the P3_CONTENT_TYPE page (I tried several times) and I am able to use/view the content of this page P3_CONTENT_TYPE element. Even when I fly over my link, the url is correct, but instead to display the actual value of the substitution string, it just shows "#CONTENT_TYPE # Rather than use the substitution string my request, I also tried to use 'content_type' but is not no longer works.

    It is the last problem or obstacle that I am jumping. Getting the substitution string to display real value would be solve my problem overall. Any ideas on what could be the problem?

    Thanks in advance.

    As soon as I posted this, I've done a few steps more and I realized what the problem was. This is the syntax of the query. I guess that it will not allow you to use a substitution string. Must concatenate it thus:

    SELECT
    ....
    ....
    when content_type is not null then 'Not Null Case'
    else...
    end as..
    ....
    ....
    

    This is the correct syntax... I guess I should since I'm pulling the value of content_type itself in the actual query. But it works for me. Maybe not the best way, but it solved my problem. Thanks for your help. Maybe this will be useful to someone else.

  • APEX URL issues

    Hello world

    I use APEX 5.0 alongside REST services.

    My url is as below:

    http://serverAddress/name/f?p=:

    How can I change this url so that she had my own naming conventions and does not show the parameters passed.

    For example instead of:

    f? p = & APP_ID.:5: & APPSESSION.:NO::P2_ID:1234

    I want something like

    process_data/application_name.

    which does the same thing.

    Thanks for the help.

    You can start watching here

    Kris blog: Nicer URLS for APEX, yet another option

    common search term is "apex oracle prettify URLs.

  • Apex URL connectivity.

    You don't have permission to access to the/dev/apex/apex on this server. -Is the error showing when I am trying to connect via this link
    http://SIS-prosun07:7777/dev/apex /.

    Issue began this way:

    I needed to create a workspace, so I tried to log into ADMIN but unfortunately given wrong password 3 times which made it lock and when trying to reset the ADMIN password by running @apexcnpwd.sql it lifting error as password validation failed but we follow-up rules of the password as 1 caps , 1 alphanumeric, etc.. I tried Goodday123 and Niceday123$ and many others but he agreed and I guessed just like his not accepting because of the version we use APEX 4.2 and may be the file is the old version, but I did not try anything in this assumption... After that I just checked user status DBA_USERS and APEX_040200 and APEX_PUBLIC_USER and FLOW_FILES were in the expired State. APEX_040200 and APEX_PUBLIC_USER were in the locked State also for that as we do not know password then I changed the password to unlock it and make it OPEN State... But unfortunately, after doing the above mentioned URL no longer works... I felt that I made a mistake by changing the password of APEX_PUBLIC_USER and do not even update in the file dads.conf... So, we have configured dads.conf file also, but always URL did not work... And just guessed and restarted apache server and its suddenly started working... But still unable to change the password of ADMIN as password validation same error failed... Finally, in this scenario we are opening file apexchpwd.sql to see what is matter and unfortunately it's file as defined in the schema file was APEX_040100 that we changed to APEX_040200 and finally has been changed successfully and restarted Oracle HTTP server...

    Not my doubt in this scenario, is what exactly is my mistake I spoke a lot of documents, but I just don't know if because I changed the password of users APEX_PUBLIC_USER and APEX_040200 so URL stopped working or because of the ADMIN got locked so question came... Or even before requests for password changing worked very well and just ADMIN password only had a problem but as I changed URL is not opened and the DEV team was idle for hours or well like we restarted the server apache immediately worked URL then is - this problem was of the Apache server. . Pls suggest what was my mistake right and much more on this case... However the problem is resolved, but I want to understand in a profound way so that again, even should not happen...

    Kind regards
    Nitesh.

    Hello

    Nitesh. wrote:
    I do not understand why it should be APEX_0402000 in the locked state.

    APEX_0402000 schema is locked by default after installation of the APEX.
    This database user is not necessary for any connection.
    State of the APEX instance ADMIN user or password are not something to do with connections or users of database.
    You must unlock only user witch are used by the web server to connect to the database. In your case, it is APEX_PUBLIC_USER.

    Nitesh. wrote:
    And you mean that if we change APEX_PUBLIC_USER password, you must configure file dads.conf right... His we use mob_pl/sql, so I should have set this file as soon as changed right password...

    Yes, that's correct.

    Nitesh. wrote:
    What is the role of the account anonymous here can not understand that its also designed for HTTP access and it remains always locked but then why has the CREATE SESSION system privilege...

    ANONYMOUS is usually used with Embed PL/SQL Gateway (EPG). If you don't use EPG, you can block this user database.

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Urgent need help - APEX URL does not work when computer conncects to the Internet

    APEX, I installed it on my computer. But the APEX is unusable until the computer is running in offline mode.
    If I connect to the internet. Using the URL now
    http://localhost: 8080/apex
    I get the message below.
    ---------------------------
    Internet Explorer cannot display this webpage
    -----------------------------
    I also use the name of the computer/IP addresses to test, it does not work either.
    But if I work offline, APEX can work.

    I tried to disable IPv6 on my computer, but it still does not work.
    My OS is Win7. Recently, I changed my OS, the latest operating system is Windows XP and APEX worked correctly.
    Can anyone help with this?

    Thank you in advance.

    Disable the proxy for your localhost configuration (or add on an exceptional basis through manual configuration). Your network is not finding your host when searching the path (to the internet) to reach it.

  • APEX URL in a production environment

    Since the URL will be display (value: element) variable when you link between pages, or even create manually. A technical user can change just the value of the URL itself correct?

    Take for example this URL:

    http://Apex.Oracle.com/pls/Apex/f?p=46976:7:619658001914051:no:RP:p_BOL, p_BOOKINGNO:1631 A 00565, 1631 A 00565

    I could go and swap "A 1631, 00565" with another number, that number could be a number, not associated with this user.

    Are you able to hide the URL string?

    Or it's just the way it is and I have to put in the postings of user on my entry sql?

    Jeremy-

    You should take a look at the Protection of the State of Session. This feature of APEX ensures the security surrounding the issue you describe.

    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/sec.htm#CDDGIGJH

    Austin

    Published by: AustinJ on August 3, 2011 10:49
    Link added

  • ApEx URL or questions

    Hello

    It's really a question of two parts:

    1. why most of the places of DAD do not begin by "/ pls? I always thought that it was necessary to say modplsql to demand but one of my colleagues who sought to shorten the length of the URL of the home page of the application tried just "apex" and we were able to use just www.address.com:8888 / apex...

    2. why the most cases of ApEx use port 80 default?

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen

    Dan:

    The "/ pls ' requirement of prefix for dads is a relic of the past.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14190/confmods.htm#sthref550

    What do not use port 80, I find it convenient not to use because I can then start and stop OHS without having to be root.

    CITY

  • How to pass the external APEX URL parameter values

    Hi all

    Hope you can help me with the following:

    During my first APEX application, I created a button that should have a parameter value of the current page to an external URL

    I created a button.

    The URL redirection target option is set to URL

    [I put the URL target for the http://[URLNAME button]? [constant parameters] & p_variable =: P13_VALUE1

    The APEX variable does not replace what I understand. Can someone tell me how it CAN be replaced?

    Thank you very much

    Marco

    Hi Marko,

    You must use & P13_VALUE1. of the element to get by following the link.

    Kind regards
    Andrea

  • Cross reference incorrect syntax

    Try to create a partial cross reference text using the suggested code:

    "< fullPara delim =".:” includeDelim=”false”/>

    However, InDesign (DC) gives me a message "invalid syntax".

    Ideas?

    Thank you.

    Uwe,

    You are right that the quote thing is confusing. There are actually two types of quotes in the definitions for the x - Ref.

    The quotes around are regular quotes and can be curly, or German, or guillumets or anything like that. In fact, they do not have to be quotes.

    These quotes are indicators that you want some characters around the text of the full paragraph.

    "But the citations in the delim = building block": "don't go to insert citations in the text. They are in the code of the markers that indicate that what is between the markers (quotations) is the element that will stop to pick up all the text in the partial paragraph.

    It is these quotes that cannot be curled.

    Does make sense?

  • Assign value APEX URL of the page to the redirect of the page element

    Hello
    I have the following hard coded URL routing traffic on page 10:
    href = "f? p = & APP_ID.:10: & SESSION. ::: 10 : »

    However, now I have logic to determine the button of the page which should route traffic and I'm storing in a Page element called P6_PAGE_ROUTE (the value is 10 or 23). How can I get the URL to direct traffic based on the value in P6_PAGE_ROUTE? I did some research and I've tried using the & P6_PAGE_ROUTE. but it does not work:

    href = "f? p = & APP_ID.: & P6_PAGE_ROUTE. : & SESSION. : & P6_PAGE_ROUTE. : »

    Thanks in advance for any help!

    URL addresses by passing the values generally have this format:

    href = "f? p = & APP_ID.: & P6_PAGE_ROUTE. : & SESSION. : ITEM1, ITEM2, ITEM3:VALUE1, VALUE2, VALU3

    Where,
    Question 1 has value 1
    question 2 has value 2
    and point 3A of value 3

    So the stuff LHS of the *: * must be the name of a page element

    + PS: Ensure no space after the comma as its URL. I fell for the first time and it is difficult to meet. +

  • DW cs5 incorrectly syntax highlights in the text, attributes

    < h1 class = "maintitlebar" > Jesus ' Jim n < br / >
    < span class = "mainsubtext" > a PC and a little Mac oriented website with software and repair information and how - to on computers using </span >
    < / h1 >

    "the word Jesus is black, but all of ' n on is blue until you get to another" in the topic - and thence to the end tag, everything else is black again.  I don't know whether to call this a lexing or bug analysis.

    Another thing I noticed is that dreamweaver cs5 is flaky with its syntax highlighting, especially when it comes to single quotes in attributes.

    < style table ='border-style: none; border-width: thin; border-color: transparent;' border = '0' > < tr > < td valign = "top" class = "mainmenu" >

    is an example.  the single qoutes seem to throw dreamweaver syntax highlighter in the equivalent of "soup of tags.

    Please correct. Thank you

    Well, engineers Adobe drop from time to time. I guess I would suggest that contact you them directly instead of being coy on this subject.

    Submit a bug report: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

    Sorry to hear about your difficulties, however. Nice that she follows the phases of the Moon for you.

    I did not use HTML5 yet, so my suggestion works in my code... Sorry it does not work in your. I certainly didn't mean to insult your code!

    Beth

  • How to recover APEX URL - s request in Google?

    Hi all

    I was wondering if there is a way to search Google to find only APEX applications ().

    Has anyone managed to do this before?

    Thank you
    Ana-Maria

    Hi Ana-Maria,

    Something like this works:

    Google search:

    allinurl:apex pls
    

    Greetings,
    Rutger

Maybe you are looking for